Donate Button With CSS Animated God Rays
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 - 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.
*/
Developer | Anghelos Coulon |
Username | anguo |
Uploaded | August 30, 2022 |
Rating | 4 |
Size | 2,561 Kb |
Views | 103,224 |
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!
Name | Size |
Ripple | 2,093 Kb |
Lemon | 4,621 Kb |
Rotating oven - Animated SVG | 5,541 Kb |
Pistachio pattern | 2,502 Kb |
CSS Gas Flame Animation | 1,956 Kb |
Night reading mode | 3,048 Kb |
Simple always-visible comment indicator | 3,250 Kb |
Salt Shaker CSS-Animated SVG | 4,125 Kb |
Pistachio skin remover machine, animated SVG | 12,670 Kb |
Sheji | 2,287 Kb |
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!
Name | Username | Size |
Automatic scroll | Skeurentjes | 4,042 Kb |
Android Play Store With Slick Carousel | -J0hn- | 4,982 Kb |
Delete Hover | Chungman93 | 2,557 Kb |
Bubble animation | Ftabor | 6,565 Kb |
Custom Select Element | Agrayson | 3,616 Kb |
Mega menu | DimaZubkov | 5,066 Kb |
Price | Catcode | 2,623 Kb |
Canvas Background Effect | Sonick | 3,513 Kb |
Random Gradients - JS | Aldlevine | 2,026 Kb |
My Interests | Anshusaxenaarora | 2,015 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!