/* The basic styling */
.load-wrapper {
width: 300px; /* Sets the width of the wrapper */
height: 300px; /* Sets the height of the wrapper */
display: flex; /* Sets the wrapper to flex */
flex-direction: row; /* Sets to flex by row */
align-items: center; /* Align content vertically in wrapper */
justify-content: center; /* Align content horizontally in wrapper*/
background: #8b8e8b url('http://download.stephenirving.net/PinPoint-reversed.png')
no-repeat local center center;
background-size: 56px 28px;
}
.pie-wrapper {
width: 100px; /* Sets the width of the progress bar */
height: 100px; /* Sets the height of the progress bar. Set height equal to width */
/* margin-bottom: 50px; /* Sets margin space at the bottom of the progress bar */
position: absolute; /* Enables clipping */
clip: rect(0px, 100px, 100px, 50px); /* Hide half of the progress bar */
}
/* Set the sizes of the elements that make up the progress bar */
.circle {
width: 80px; /* Set to 80% of wrapper width */
height: 80px; /* Set to 80% of wrapper width */
border: 10px solid #df1f27; /* Set to 10% of wrapper width and the color desired */
border-radius: 50px; /* Set to 50% of wrapper width */
position: absolute;
clip: rect(0px, 50px, 100px, 0px);
}
/* Using the data attributes for the animation selectors. */
/* Base settings for all animated elements */
div[data-anim~=base] {
-webkit-animation-iteration-count: 1; /* Only run once */
-webkit-animation-fill-mode: forwards; /* Holds the last keyframe */
-webkit-animation-timing-function: linear; /* Linear animation */
}
.pie-wrapper[data-anim~=wrapper] {
-webkit-animation-duration: 0.01s; /* Completes keyframes asap */
-webkit-animation-delay: 2s; /* Waits half of the animation time */
-webkit-animation-name: close-wrapper; /* Keyframes name */
}
.circle[data-anim~=left] {
-webkit-animation-duration: 4s; /* The full 360 degree animation time */
-webkit-animation-name:...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.