RPG Cooldown

Developer
Size
2,902 Kb
Views
54,648

How do I make an rpg cooldown?

Common cooldown effect for spells and such in rpg games. What is a rpg cooldown? How do you make a rpg cooldown? This script and codes were developed by Adam Grayson on 10 November 2022, Thursday.

RPG Cooldown Previews

RPG Cooldown - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>RPG Cooldown</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container"> <div class="cooldown"> <svg class="circleFill"> <circle cx="50%" cy="50%" r="50%" stroke="rgba(0,0,0,0.5)" stroke-width="100%" fill="none"></circle> </svg> </div> <div class="icon"></div>
</div>
<div class="container"> <div class="cooldown"> <svg class="circleFill"> <circle cx="50%" cy="50%" r="50%" stroke="rgba(0,0,0,0.5)" stroke-width="100%" fill="none"></circle> </svg> </div> <div class="icon"></div>
</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>

RPG Cooldown - Script Codes CSS Codes

.container { width: 110px; height: 110px; overflow: hidden; margin: 20px auto; cursor: pointer;
}
.container .cooldown { position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.container .cooldown svg { width: 100%; height: 100%;
}
.container .cooldown svg.circleFill { z-index: 1; stroke-dasharray: 346; stroke-dashoffset: 0; -webkit-transition: all 1s linear; transition: all 1s linear; -webkit-transform: rotate(-90deg) scale(1, -1); transform: rotate(-90deg) scale(1, -1);
}
.container .cooldown svg.circleFill.filled { stroke-dashoffset: 346;
}
.container .cooldown { position: relative; width: 100%; height: 100%; background: #CCC;
}

RPG Cooldown - Script Codes JS Codes

(function() { $(document).ready(function() { return $('.container').click(function() { var target; target = $(this).find('.circleFill'); return target.attr("class", "circleFill filled"); }); });
}).call(this);
RPG Cooldown - Script Codes
RPG Cooldown - Script Codes
Home Page Home
Developer Adam Grayson
Username agrayson
Uploaded November 10, 2022
Rating 3
Size 2,902 Kb
Views 54,648
Do you need developer help for RPG Cooldown?

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!

Adam Grayson (agrayson) Script Codes
Create amazing web content 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!