简体   繁体   中英

Firefox css animations

I have mobile view animation which works perfectly on Chrome mobile but on Firefox the element positioning result is way off. Works fine in Opera and Safari.

<div 
class="fptext">text/text   
Text/text</div>
<div  
class="fatext">text/text/
text/txt</div>

CSS-ANIMATION:

@media (max-width: 768px). 
{.fptext {animation: fadeout 
50s ease forwards;animation. 
delay: 0s;padding:0px;
}}

@keyframes fadeout{
from {font-size: 0px} to 
{font-size: 40px;}}

@media(max-width: 768px). 
{.fatext{animation: bigger 
50s ease forwards;animation. 
delay: 0s;; 
position:relative;font-size: 
15px; color:#43ff0a;bottom: 
1700px; font- 
weight:bolder;padding: 
0px;background 
color:blue;display:block
;margin-bottom: -1750px
}} 

@keyframes bigger 
{from{font-size: 0px} to 
{font-size: 18px;}}

See mobile here

i inspected your code on my browser and when i have cross browser issues i start with a normalize or reset depending on my needs, i didnt see either in the head when i inspected so you may see an improvement by just adding a normalize.css to your project. also you are worrying about a problem for 0.62% of the united states market share, so less than 1 percent of people use it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM