+ 1

Any way to animate a text on html?

Urgent

29th Mar 2020, 3:31 PM
Ojay Vibez
Ojay Vibez - avatar
2 Answers
+ 3
Like this (using CSS):<!DOCTYPE html> <html> <head> <title>Page Title</title> <style> h1 { transform-box: fill-box; animation: anim 5s linear infinite; transform-origin: 50% 50%; } @keyframes anim{ 0% { transform: translateX(-100%); } 100%{ transform:translateX(100%); } } </style> </head> <body> <h1>Animated Text</h1> </body> </html>
29th Mar 2020, 4:33 PM
Bibek Oli
Bibek Oli - avatar
0
Thank you so much guysss
2nd Apr 2020, 4:27 PM
Ojay Vibez
Ojay Vibez - avatar