Shaking css animation

Developer
Size
1,896 Kb
Views
66,792

How do I make an shaking css animation?

By Allan Jay Tomol. What is a shaking css animation? How do you make a shaking css animation? This script and codes were developed by Ghost Rider on 23 July 2022, Saturday.

Shaking css animation Previews

Shaking css animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Shaking css animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <center> <section class="content"> <h1>Shaking Image and Text</h1> <br> <br> <img src="https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-prn2/t1.0-9/1484185_549883401768989_236400664_n.jpg" class="shake"> <h2 class="shake">Shake this text</h2> </section> </center>
</body>
</body>
</html>

Shaking css animation - Script Codes CSS Codes

body{ background-color:#FB861D;
}
.content { margin: 5% 0 0 0%;
}
.shake {	display:inline-block
}
.shake {	display:block;	position:relative;
}
img{
display: block;
height: 250px;
width: 250px;
border-radius: 50% 50% 50% 50%;
}
h2.shake,
.shake.inline {	display:inline-block
}
h1,p,h2{ color:#FFF;
}
@-webkit-keyframes spaceboots {	0% { -webkit-transform: translate(2px, 1px) rotate(0deg); }	10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }	20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }	30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }	40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }	50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }	60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }	70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); }	80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); }	90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }	100% { -webkit-transform: translate(1px, -2px) rotate(-1deg); }
}
.shake:hover,
.shake:focus {	-webkit-animation-name: spaceboots;	-webkit-animation-duration: 0.8s;	-webkit-transform-origin:50% 50%;	-webkit-animation-iteration-count: infinite;	-webkit-animation-timing-function: linear;
}
Shaking css animation - Script Codes
Shaking css animation - Script Codes
Home Page Home
Developer Ghost Rider
Username GhostRider
Uploaded July 23, 2022
Rating 3.5
Size 1,896 Kb
Views 66,792
Do you need developer help for Shaking css animation?

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!

Ghost Rider (GhostRider) Script Codes
Create amazing blog posts 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!