We know that CSS3 can make a lot of cool animation effect, then today's teaching is how to use CSS3 font style to make realistic fire effect text, let's look at it together.
Html:<body><p> Fire Fire Fire </p></body>css:<style>body{font-size:120px font-family: ' Microsoft ya Black '; Background: #000; Color: #fff;} @-webkit-keyframes test{0%{text-shadow:0 0 20px #fefcc9, 10px-10px 30px #feec85, 20px-20px 40px #ffae34, 20px-40px 50px #f3d131, 0-80px 70px #f38e1c;} 30%{text-shadow:0 0 20px #fefcc9, 10px-10px 30px #feec85, 20px-20px 40px #ffae34, 20px-40px 50px #f3d131, 10px-90px 80px #f38e1c;} 60%{text-shadow:0 0 20px #fefcc9, 10px-10px 30px #feec85, 20px-20px 40px #ffae34, 20px-40px 50px #f3d131, 0px-80px 100px #f38e1c;} 100%{text-shadow:0 0 20px #fefcc9, 10px-10px 30px #feec85, 20px-20px 40px #ffae34, 20px-40px 50px #f3d131, 0-80px 70px #f38e1c;}} p{font-weight:bold; color: #fff; text-shadow:0 0 20px #fefcc9, 10px-10px 30px #feec85, 20px-20px 40px #ffae34, 20px-40px 50px #f3d131, 0-80px 70px #f38e1c; animation:1s t EST linear Infinite;} </style>
Believe that you have seen these cases you have mastered the method, more wonderful please pay attention to the PHP Chinese network other related articles!
Related reading:
Make Div width Adaptive teaching
The relationship between Web pages and DIV+CSS
Development experience of using H tags in web pages