CSS Animals with your own hands

Need help building beautiful interfaces?
Create stunning, interactive UIs that users love. We help startups build frontend experiences that convert visitors into customers. Leave your email — let
The first thing that was made is the animated owl. When hovering over the owl, it is able to blink and flap its wings. We will dwell upon it.
The owl was separated into 2 parts - the head and the body
Let’s start with the head. I separated it as well (eyes, beak, ears)
All the elements are simple geometric figures that are positioned relative to each other, and their extra parts are hidden by overlapping other elements. As a result, an integral structure should be obtained.
Since there are hundreds of lines of styles, then I propose to analyze only a small part. The link to the entire code will be available in the end.
The head and the eyes are blocks that are simply given border-radius and there is nothing unusual in them.
The beak and the ears are made with the help of clip-path. It allows to draw on points as on a canvas.
As a result we get something like this:

As it was described above the owl is able to blink and flap wings. It is done by means of 3 animations - eyelids and one animation for each wing.
That's all. We have analyzed the main points. The remaining parts are made by analogy and should not cause difficulties. See the full version of the code and a experiment on https://codepen.io
See the Pen CSS OWL by Mikhail (@mikhail1992) on CodePen.
For those who are interested in it there is the example of a Cat
See the Pen CSS Cat by Mikhail (@mikhail1992) on CodePen.
Enjoyed this article? Share it with others
Related Posts

Migration from Confluence to Notion
As we all know, our company is looking for new and optimal ways to organize the work process. So now we are moving away from Confluence in favor of Notion. We have been working with Confluence for almost two years and...

Deployment Django+Celery on Heroku using Bitbucket
Introduction In this article we will analyze how to deploy a Django project from Celery to Heroku from Bitbucket. In most cases, such articles on the Internet are already outdated, so now we will go through all the steps and find out...

TOP Fast Python Web Frameworks in 2019
In 2018, Python strengthened its popularity among programmers and entered the Top 3 most popular languages on github. More and more people are going to the bright side … that is Python. There is an even greater number of developers...