Donate Button With CSS Animated God Rays

Size
2,561 Kb
Views
103,224

How do I make an donate button with css animated god rays?

Mouse over to see the animation. The animation is done entirely in CSS. The "god rays" image is transparent so it can just appear over anything you have around the button.. What is a donate button with css animated god rays? How do you make a donate button with css animated god rays? This script and codes were developed by Anghelos Coulon on 30 August 2022, Tuesday.

Donate Button With CSS Animated God Rays Previews

Donate Button With CSS Animated God Rays - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Donate Button With CSS Animated God Rays</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! */ .donateContainer{	position: relative;	width: 207px;	margin: auto; margin-top: 100px;
}
.donate{	margin: auto;	position: relative;	height: 82px;	width: 160px;	z-index: 2;	display: block; } .donate:hover + .rays { height: 200px; width: 200px; opacity: 1; margin-top: -105px; }
.rays{	transform-origin:center;	height: 50px;	width: 50px;	position: absolute; top: 50%; right: 0; left: 0; bottom: 0; margin: auto; margin-top: -30px;	z-index: 1; opacity: 0; transition: .5s ease-out; animation: godrays 10s ease-in-out alternate infinite; }
@keyframes godrays{	to {	transform: rotate(360deg);	}
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="donateContainer"> <a class="donate" id="donate" href="#donate"> <img src="http://www.thejinanfog.com/wp-content/themes/jinanfog/images/donate_button2.png"></img> </a> <img class="rays" src="http://www.thejinanfog.com/wp-content/themes/jinanfog/images/god_rays2.png"></img>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Donate Button With CSS Animated God Rays - Script Codes CSS Codes

.donateContainer{	position: relative;	width: 207px;	margin: auto; margin-top: 100px;
}
.donate{	margin: auto;	position: relative;	height: 82px;	width: 160px;	z-index: 2;	display: block; } .donate:hover + .rays { height: 200px; width: 200px; opacity: 1; margin-top: -105px; }
.rays{	transform-origin:center;	height: 50px;	width: 50px;	position: absolute; top: 50%; right: 0; left: 0; bottom: 0; margin: auto; margin-top: -30px;	z-index: 1; opacity: 0; transition: .5s ease-out; animation: godrays 10s ease-in-out alternate infinite; }
@keyframes godrays{	to {	transform: rotate(360deg);	}
}

Donate Button With CSS Animated God Rays - Script Codes JS Codes

/* Incorporated fork graciously made by @jklm313 with minor tweaks for firefox support. Removed the link that accidentally got here, that shamelessly linked to my own donation page.
*/
Donate Button With CSS Animated God Rays - Script Codes
Donate Button With CSS Animated God Rays - Script Codes
Home Page Home
Developer Anghelos Coulon
Username anguo
Uploaded August 30, 2022
Rating 4
Size 2,561 Kb
Views 103,224
Do you need developer help for Donate Button With CSS Animated God Rays?

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!

Anghelos Coulon (anguo) 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!