DEV Community

Cover image for Do you know what is CSS Prefixes ๐Ÿ˜ฎ
๐Ÿšฉ Atul Prajapati ๐Ÿ‡ฎ๐Ÿ‡ณ
๐Ÿšฉ Atul Prajapati ๐Ÿ‡ฎ๐Ÿ‡ณ

Posted on โ€ข Edited on

2 1

Do you know what is CSS Prefixes ๐Ÿ˜ฎ

Hi, coding people,

Hope you all doing amazing growth in your journey.

This post is part of our "20 days CSS animation"

In this post we are going to learn about CSS prefixes ๐Ÿ˜… actually it's not an animation syntax. Its name of a solution, I mean there are some old browsers like internet edge, opera, etc these browsers can't load some CSS animations properly that's why in CSS there some prefixes like

  • -webkit- (for old ios browsers)
  • -ms- (for old Microsoft edge browsers)
  • -moz- (for firefox old versions)
  • -o- (for opera old browsers)

For latest browsers

  • animation: sunrise 2s linear 0s infinite normal none;

Prefix for old edge browser

  • -webkit-animation: sunrise 2s linear 0s infinite normal none;
  • -ms-animation: sunrise 2s linear 0s infinite normal none;
  • -moz-animation: sunrise 2s linear 0s infinite normal none;
  • -o-animation: sunrise 2s linear 0s infinite normal none;

Now see this codepen project for real-life examples of CSS prefixes.

And if you guys interested in my free website templates please download them here ๐Ÿ‘‰AtulCodex Marketplace ๐Ÿช.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Sentry image

See why 4M developers consider Sentry, โ€œnot bad.โ€

Fixing code doesnโ€™t have to be the worst part of your day. Learn how Sentry can help.

Learn more

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay