🌐
CodePen
codepen.io › katmai7 › pen › npRRQP
Border animation (circle)
Minimize CSS Editor · Fold All · Unfold All · html{ height: 100%; } body{ height: 100%; background: #E94E3D; } .wrap{ margin: 100px auto; width: 130px; } @color: #E94E3D; .circle{ position: relative; overflow: hidden; width: 120px; height: 120px; border-radius: 50%; background: #E94E3D; box-shadow: 60px -60px 0 2px @color, -60px -60px 0 2px @color, -60px 60px 0 2px @color, 60px 60px 0 2px @color, 0 0 0 2px #E94E3D; .icon{ position: absolute; display: block; color: #fff; font-size: 20px; } .i1{ top: -25px; left: 55px; } .i2{ top: 50px; left: -20px; } .i3{ bottom: -25px; left: 50px; } .i4{ to
🌐
CodePen
codepen.io › abdelrahmanahmed › pen › XXdONp
animated border (circle)
Minimize CSS Editor · Fold All ... 2px dashed #000000; border-bottom: 2px dashed #000000; padding: 10px; animation: spin 10s infinite linear; } .image-circle img { animation: spin 10s infinite reverse linear; width: 100%; ...
🌐
SitePoint
sitepoint.com › html & css
Animating circular image border - HTML & CSS - SitePoint Forums | Web Development & Design Community
June 21, 2021 - I have created a code pen here: ... start and then complete the circle(border). I also found some code pens, but they are using SCSS and Pseudo element property. Is there any simple and easy way around by just using css animation? https://codepen.io/cobra_winfrey/pen/md...
🌐
CodePen
codepen.io › colinlord › pen › PdZMGz
Spinning Border Circle with CSS Transforms
Minimize CSS Editor · Fold All ... border-color: transparent; border-radius: 50%; border-width: 0; animation: rotateCircle 2s linear infinite; padding: 2px; display: table; .inner-circle { background: $white; height: 305px; ...
🌐
CodePen
codepen.io › calebgittins › pen › pwyEjQ
SVG circle border animation
Minimize CSS Editor · Fold All · Unfold All · body { height: 100vh; position: relative; background-color: #f5f5f5; } svg, .logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); } .logo { width: 140px; height: 140px; background-color: #231f20; border-radius: 100px; opacity: 0; animation: fadeIn 0.75s linear forwards; animation-delay: 1s; } .circle { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: stroke 2s ease-out forwards; } @keyframes stroke { to { stroke-dashoffset: 0; } } @keyframes fadeIn { to { opacity: 1; } } !
🌐
CodePen
codepen.io › aanjulena › pen › oeGJJa
Pure CSS Animated Circle Border
Minimize CSS Editor · Fold All · Unfold All · body { background: repeating-linear-gradient(45deg, white 0px, lightblue 100px); height: 500px; background-size: 500px 500px; background-repeat: no-repeat; } html { height: 100%; } #container { position: absolute; width: 265px; height: 265px; border: solid red 1px; // animation: colors 2s infinite; } #halfclip { width: 50%; height: 100%; right: 0px; position: absolute; overflow: hidden; transform-origin: left center; animation: cliprotate 2s steps(2) infinite; -webkit-animation: cliprotate 2s steps() infinite; } .halfcircle { box-sizing: border-
🌐
CodePen
codepen.io › palmdesign › pen › QWNLaOW
circle button border animation css
<button class="spin circle">Spin Circle</button> ! CSS Options · Format CSS · View Compiled CSS · Analyze CSS · Maximize CSS Editor · Minimize CSS Editor · Fold All · Unfold All · button { border: 0; position: relative; } button::before, ...
🌐
CodePen
codepen.io › giana › pen › yYBpVY
CSS Border transitions
I forgot what I was doing } &:hover::after { border-top: 2px solid $blue; // Shows border border-left-width: 2px; // Solid edges, invisible borders border-right-width: 2px; // Solid edges, invisible borders transform: rotate(270deg); // Rotate around circle transition: transform 0.4s linear 0s, border-left-width 0s linear 0.35s; // Solid edge post-rotation } } .circle { border-radius: 100%; box-shadow: none; &::before, &::after { border-radius: 100%; } } .thick { color: $red; &:hover { color: #fff; font-weight: 700; } &::before { border: 2.5em solid transparent; z-index: -1; } &::after { mix-b
🌐
CodePen
codepen.io › kingjami › pen › VpPwWR
Circle border animation
Very slightly modified this code http://jsfiddle.net/swfour/32Y8U/181/...
Find elsewhere
🌐
FreeFrontend
freefrontend.com › css-border-animations
57 CSS Border Animations
2 weeks ago - Every free demo in this library is fully responsive and cross-browser compatible. You can easily download the source code or fork a specific project on CodePen to customize animation speed, colors, and thickness. ... This is an Animated Border Drawing Button.
🌐
CodePen
codepen.io › stojko › pen › YZgByQ
CSS3 Draw border animation
Minimize CSS Editor · Fold All ... center; } h1, p { color: white; } .circle-border { width: 300px; height: 300px; border-radius: 100%; padding: 30px; background-color: black; } .circle { width: 300px; height: 300px; display: ...
🌐
CodePen
codepen.io › uiswarup › pen › RBByzW
border-animation-css
border-animation-css is create only in use of css.,trending...
🌐
Essential Web Apps
essentialwebapps.com › home › 10+ css border animations (latest collection)
10+ CSS border animations (latest collection) - Essential Web Apps
February 27, 2022 - border hover gradient animation css codepen, button border animation css codepen · browsers-compatibility: Chrome, Edge, Firefox, Opera, Safari · Responsive: Yes · Dependencies: No · hover to play · Author Corey Bullman · Demo & Code · Tech used HTML / CSS (SCSS) What is this? circle border animation css codepen, circle border animation css left to right ·
🌐
CodePen
codepen.io › Edgardo › pen › jPNdjq
Simple css3 animation from square to circle
<div class="container animated zoomIn"> <div class="row"> <h1 class="text-primary text-center">Square to circle simple CSS3 Animation</h1> <div class="animation"></div> </div> </div> ... h1 { margin-top: 50px; } .animation { margin: 0 auto; margin-top: 70px; width: 250px; height: 250px; background-color: black; border: 15px solid #337ab7; animation: square-to-circle 1s .83s infinite cubic-bezier(1,.015,.295,1.225) alternate; } @keyframes square-to-circle { 0% { border-radius:0 0 0 0; background:black; transform:rotate(0deg); } 25% { border-radius:25% 25% 25% 25%; background:black; transform:rotate(45deg); } 50% { border-radius:50% 50% 50% 50%; background:black; transform:rotate(90deg); } 75% { border-radius:75% 75% 75% 75%; background:black; transform:rotate(180deg); } 100% { border-radius:100% 100% 100% 100%; background:black; transform:rotate(360deg); }
🌐
CodePen
codepen.io › tag › border-animation
Pens tagged 'border-animation' on CodePen
CodePen doesn't work very well without JavaScript · We're all for progressive enhancement, but CodePen is a bit unique in that it's all about writing and showing front end code, including JavaScript. It's required to use most of the features of CodePen · Need to know how to enable it?
🌐
CodePen
codepen.io › Gozeon › pen › wXBQxY
Border Rotate
Minimize CSS Editor · Fold All · Unfold All · .circle { width: 100px; height: 100px; position: relative; } .circle .border { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: transparent; border-radius: 50%; border: 2px dashed #000; -webkit-animation-name: Rotate; -webkit-animation-duration: 2s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; -moz-animation-name: Rotate; -moz-animation-duration: 2s; -moz-animation-iteration-count: infinite; -moz-animation-timing-function: linear; -ms-animation-name: Rotate; -ms-animati
🌐
Smashing Magazine
smashingmagazine.com › 2023 › 10 › animate-along-path-css
How To Animate Along A Path In CSS — Smashing Magazine
October 18, 2023 - That’s a valid approach, but I’m comfortable working directly in CSS for this sort of thing. We start with a single element in the HTML: ... From here, we set the circle’s dimensions. That can be done by declaring a width and using an aspect-ratio to maintain a perfect one-to-one shape. .progress-circle { width: 200px; aspect-ratio: 1; } Now we can round the shape with the border-radius property:
🌐
CodePen
codepen.io › sadimahmud › pen › qOXRbo
Animated Circle with Gradient Border
Creating an animated circle with gradient border around it only with CSS...
Top answer
1 of 1
60

This is my solution.

I set a background on body to show it is transparent

body {
  background: repeating-linear-gradient(45deg, white 0px, lightblue 100px);
  height: 500px;
  background-size: 500px 500px;
  background-repeat: no-repeat;
}

html {
  height: 100%;
}

#container {
  position: absolute;
  width: 400px;
  height: 400px;
   border: solid red 1px;
   animation: colors 4s infinite;
}

#halfclip {
  width: 50%;
  height: 100%;
  right: 0px;
  position: absolute;
   overflow: hidden;
   transform-origin: left center;
   animation: cliprotate 16s steps(2) infinite;
   -webkit-animation: cliprotate 16s steps(2) infinite;
}

.halfcircle {
  box-sizing: border-box;
  height: 100%;
  right: 0px;
  position: absolute;
  border: solid 25px transparent;
   border-top-color: blue;
   border-left-color: blue;
   border-radius: 50%;
}
#clipped {
  width: 200%;
   animation: rotate 8s linear infinite;
   -webkit-animation: rotate 8s linear infinite;
}
#fixed {
  width: 100%;
    transform: rotate(135deg);  
   animation: showfixed 16s steps(2) infinite;
   -webkit-animation: showfixed 16s linear infinite;
}

@-webkit-keyframes cliprotate {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}

@keyframes cliprotate {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}


@-webkit-keyframes rotate {
  0% {transform: rotate(-45deg);}
  100% {transform: rotate(135deg);}
}

@keyframes rotate {
  0% {transform: rotate(-45deg);}
  100% {transform: rotate(135deg);}
}

@-webkit-keyframes showfixed {
  0% {opacity: 0;}
  49.9% {opacity: 0;}
  50% {opacity: 1;}
 100% {opacity: 1;}
}
<div id="container">
    <div id="halfclip">
        <div class="halfcircle" id="clipped">
        </div>
    </div>
    <div class="halfcircle" id="fixed">
    </div>
</div>

And this is a variation on the solution, to make it run only once on hover

body {
  background: repeating-linear-gradient(45deg, white 0px, lightblue 100px);
  height: 500px;
  background-size: 500px 500px;
  background-repeat: no-repeat;
}

html {
  height: 100%;
}

#container {
  position: absolute;
  width: 300px;
  height: 300px;
   border: solid red 1px;
}

#halfclip {
    width: 50%;
    height: 100%;
    right: 0px;
    position: absolute;
    overflow: hidden;
    transform-origin: left center;
}

#container:hover #halfclip {
    animation: cliprotate 6s 1;
    transform: rotate(180deg);
} 

@keyframes cliprotate {
  0% {transform: rotate(0deg);}
  50% {transform: rotate(0deg);}
  50.01% {transform: rotate(180deg);}
  100% {transform: rotate(180deg);}
}

.halfcircle {
  box-sizing: border-box;
  height: 100%;
  right: 0px;
  position: absolute;
  border: solid 25px transparent;
   border-top-color: blue;
   border-left-color: blue;
   border-radius: 50%;
}

#clipped {
    width: 200%;
    transform: rotate(-45deg);
}
#container:hover #clipped {
    transform: rotate(135deg);
    animation: rotate 3s linear 2;
}


@keyframes rotate {
  0% {transform: rotate(-45deg);}
  100% {transform: rotate(135deg);}
}


#fixed {
  width: 100%;
    transform: rotate(135deg);  
    opacity: 0;
}

#container:hover #fixed {
    opacity: 1;
    animation: showfixed 6s 1;
}



@keyframes showfixed {
  0% {opacity: 0;}
  49.99% {opacity: 0;}
  50% {opacity: 1;}
 100% {opacity: 1;}
}
<div id="container">
    <div id="halfclip">
        <div class="halfcircle" id="clipped">
        </div>
    </div>
    <div class="halfcircle" id="fixed">
    </div>
</div>

🌐
JSFiddle
jsfiddle.net › PatTastic › nzf0m83j
Animate Circle Border - JSFiddle - Code Playground
JSFiddle - Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle.