Yogesh Chauhan's Blog

Add animation to your skills bar using CSS

in CSS on July 31, 2021

Similar Post

Learn to create your skill bar using CSS

Let’s add some basic animation to the skills bar from the post above. Also, let’s polish elements with some styles too.

Let’s discuss a few CSS rules that will be used to add animation.

This code will create an animation using @keyframes that you can use for containers.

Using scaleX you can scale the element on x-axis which is what we want for the skill bars.

@keyframes fill {
  0% {
    opacity: 1;
    transform: scaleX(0);

  100% {
    opacity: 1;
    transform: scaleX(1);

Also, you need to set the transform-origin property to left. It will force the animation to start from left.

transform-origin: left;


Most Read

#1 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #2 How to add Read More Read Less Button using JavaScript? #3 How to check if radio button is checked or not using JavaScript? #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to uninstall Cocoapods from the Mac OS?

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface
You might also like these
How to create a dynamic countdown using HTML and JavaScript?HTMLDifferent Types of Functions in JavaScriptJavaScriptHow to link/add CSS file to HTML Document?CSSRecursion in JavaScriptJavaScriptHow to change style of all direct children of an element using jQuery?jQueryFULL OUTER JOIN in PostgresPostgresEverything you need to know about ANY, SOME and ALL Operators in PostgresPostgresHow to verify your domain in Google Console with a TXT record?MiscellaneousEXISTS and NOT EXISTS in PostgresPostgresHere’s what we can do with PHP date() functionPHPHow to install PuTTY on a MacOS?MiscellaneousTwo ways we can use colon(:) in Envision BasicEnvision Basic