CSS - awesome css animation and effects you need to know

Awesome CSS Animations and Effects You Need to Know

Create Awesome Animation and Effects using CSS and its Properties.

Cascading Style Sheet or CSS is a markup language that helps in describing how a webpage or website should appear to a user. It manipulates the web page elements, like changing the colors, font of a text, and layouts of various website elements. With It, you can do much more than changing font style or layout the element.

In this article, we will see some cool CSS animation and effects with examples and some tips and properties for writing better CSS.

Drawing Shapes with CSS – Shapes, Symbols, and Faces

Yes, you can create almost all the geometric shapes. With some practice, you can create simple pictures and symbols. And once you master it, you can create complex images like human faces or animals.


Let’s try creating shapes first.

See the Pen Drawing Shapes with CSS by kamal (@UriBoyka) on CodePen.

Author: Kamal Bisht

Now let’s try symbols.

Try creating this HEART symbol using pure CSS.

heart shape using css

Think about how you can draw this heart using just pure CSS. What shapes do you need to create this?

Here is how I did it, and you can do it too.

Heart Shape Using Pure CSS

Challenge yourself and try creating these.

See the Pen symbols using CSS by kamal (@UriBoyka) on CodePen.

And now a human face or animal.

See the Pen Drawing a human face and animal by kamal (@UriBoyka) on CodePen.

There are some stunning designs over the internet that people have created using CSS. Check them out here.

See the Pen CSS3 Panda Face by Julien Knebel (@jkneb) on CodePen.

Author: Julien Knebel

This one is my favorite.

See the Pen CSS Shapes Forest Collection spring summer 2020 by Paulina Hetman (@pehaa) on CodePen.

Author: Paulina Hetman


CSS Animation and Text Effects – From Gradient Text to Video in a Text

Deciding on a font for your website is crucial as it impacts the readability of your content. To make sure your content looks fresh and engaging, you can do much cool stuff with your text. And I am not talking about resizing or coloring your text.

Here’s what you can do with your text to make it more appealing to a user.

Gradient Text with CSS

gradient-text
   /* GRADIENT TEXT EFFECT  */
h1 {
    font-size: 90px;
    background: -webkit-linear-gradient(to top left, #009FFF 21%, #EC2F4B 100%);
    background: -moz-linear-gradient(to top left, #009FFF 21%, #EC2F4B 100%);
    background: linear-gradient(to top left, #009FFF 21%, #EC2F4B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}

 <H1>Text Effects with CSS</H1>

Vertically Rotating Text with CSS

See the Pen Vertically Rotating Text Effect using CSS by kamal (@UriBoyka) on CodePen.

Running a Video in a Text using CSS

See the Pen by kamal (@UriBoyka) on CodePen.


CSS Button Animation

Buttons are one of the most common but crucial UI elements in a web page.

Buttons allow users to take action with a single tap. It could be anything from going to the next page or submitting a subscription form. They should be findable and identifiable. CSS can change how our button looks to a user and make it more interactive.

Let’s see some button effects you can add to your web page.

See the Pen CSS BUTTON HOVER by Imran Pardes (@folaad) on CodePen.

Author: Imran Pardes

Here are some hover effects you can use in your buttons.

See the Pen Collection of Button Hover Effects by Kamal Bisht (@UriBoyka) on CodePen.

Author: David Conner


CSS Properties and functions You Need to Try

perspective CSS Property

It gives an element perspective in 3D. Its value is the distance from the viewport to the elements z plane. It’s better to understand with an example.

See the Pen perspective by Greg Hovanesyan (@gregh) on CodePen.

Author: Greg Hovanesyan

attr() CSS Function

The attr() function retrieves the value of an attribute of the selected element and uses it in the stylesheet. Let us see through an example.

See the Pen attr() CSS Function by Kamal Bisht (@UriBoyka) on CodePen.

There are plenty of ways to draw and animate using HTML elements with CSS. Share some of yours down below in the comment section.

If you like what you read till now, then you will like this too: Guide to using CSS Layout position property with examples.

Thank You for reading till the end. If you find this article useful, don’t forget to save it and share it with your friends.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.