Basic CSS animation and transition example

Developer
Size
2,915 Kb
Views
24,288

How do I make an basic css animation and transition example?

What is a basic css animation and transition example? How do you make a basic css animation and transition example? This script and codes were developed by Val Head on 07 August 2022, Sunday.

Basic CSS animation and transition example Previews

Basic CSS animation and transition example - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Basic CSS animation and transition example</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body { background: #ef; margin: 4em; font-family: Dosis, hevetica, arial, sans-serif; font-weight: 400;
}
div { margin-bottom: 4em;
}
.animation { background: #f6ad2d; color: white; text-transform: uppercase; font-size: 1.5em; width: 150px; height: 150px; position: relative; animation: bounceAround 1.1s ease-in-out infinite;
}
.transition { background: #65a6a7; color: #efefef; width: 40%; padding: 1em 0; text-align: center; font-size: 1.2em; letter-spacing: .05em; border-radius: 10px; transition: .4s background ease-out;
}
.transition p { margin: 0; padding: 0; pointer-events: none;
}
.transition:hover { background: #e65445;
}
@keyframes bounceAround { 0% { transform: translateY(0); } 20% { transform: translateY(-60px) rotate(0deg); } 25% { transform: translateY(20px) rotate(0deg); } 35%, 55% { transform: translateY(0px) rotate(0deg); } 60% { transform: translateY(-20px) rotate(0deg); } 100% { transform: translateY(-20px) rotate(360deg); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <link href='http://fonts.googleapis.com/css?family=Dosis' rel='stylesheet' type='text/css'>
<div class="animation"></div>
<div class="transition"><p>Hover For Transition Action!</p></div>
</body>
</html>

Basic CSS animation and transition example - Script Codes CSS Codes

body { background: #ef; margin: 4em; font-family: Dosis, hevetica, arial, sans-serif; font-weight: 400;
}
div { margin-bottom: 4em;
}
.animation { background: #f6ad2d; color: white; text-transform: uppercase; font-size: 1.5em; width: 150px; height: 150px; position: relative; animation: bounceAround 1.1s ease-in-out infinite;
}
.transition { background: #65a6a7; color: #efefef; width: 40%; padding: 1em 0; text-align: center; font-size: 1.2em; letter-spacing: .05em; border-radius: 10px; transition: .4s background ease-out;
}
.transition p { margin: 0; padding: 0; pointer-events: none;
}
.transition:hover { background: #e65445;
}
@keyframes bounceAround { 0% { transform: translateY(0); } 20% { transform: translateY(-60px) rotate(0deg); } 25% { transform: translateY(20px) rotate(0deg); } 35%, 55% { transform: translateY(0px) rotate(0deg); } 60% { transform: translateY(-20px) rotate(0deg); } 100% { transform: translateY(-20px) rotate(360deg); }
}
Basic CSS animation and transition example - Script Codes
Basic CSS animation and transition example - Script Codes
Home Page Home
Developer Val Head
Username valhead
Uploaded August 07, 2022
Rating 3.5
Size 2,915 Kb
Views 24,288
Do you need developer help for Basic CSS animation and transition example?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Val Head (valhead) Script Codes
Create amazing art & images with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!