Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8403495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:21:37+00:00 2026-06-09T22:21:37+00:00

This is not a question that can be solved by using ease-in . If

  • 0

This is not a question that can be solved by using ease-in.

If I have an element that I want to spin in CSS3 for a certain amount of time, but that starts off slow and ends slow, how can I do this?

CSS

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

div{
  background-image:-webkit-radial-gradient(center, ellipse cover, rgba(0,0,0,1) 0%,rgba(51,51,51,1) 20%,rgba(0,0,0,1) 20%,rgba(51,51,51,1) 40%,rgba(0,0,0,1) 40%,rgba(51,51,51,1) 60%,rgba(0,0,0,1) 60%,rgba(51,51,51,1) 80%,rgba(0,0,0,1) 80%,rgba(51,51,51,1) 100%);
  width: 200px;
  height: 200px;
  -webkit-animation-name: spin; 
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: 60.5;
  -webkit-animation-timing-function: ease-in;
}

HTML

<div></div>

I can’t seem to figure out how to do this. My animation runs for a total of 121 seconds, since it takes 2 seconds for one spin to complete, so 60.5 spins will take a total of 121 seconds (if my math is incorrect, please tell me). This works fine, except that I want the div to start spinning off slow, then completed all 59 rotations, then end slow for the last one.

I’d like to use pure CSS for this, if possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:21:38+00:00Added an answer on June 9, 2026 at 10:21 pm

    Sorry that I don’t have a JSFiddle…

    Edit: I used a relative solution in my experiment: CSS3 Clock, could that count as a half fiddle? 😀

    Edit #2: JSFiddle provided by @Charlie: http://jsfiddle.net/7DPnc

    If it really has to be pure CSS, I would suggest wrapping 3 divs together and spin them separately:

    CSS

    div.first_round
    {
    -webkit-animation-duration:3s;
    -webkit-animation-iteration-count:1;
    }
    div.last_round
    {
    -webkit-animation-duration:3s;
    -webkit-animation-iteration-count:1.5;
    -webkit-animation-delay:100s; /* you'll have to do the math */
    }
    div.main_round
    {
    -webkit-animation-duration:2s;
    -webkit-animation-delay:3s;
    -webkit-animation-iteration-count:59;
    -webkit-animation-timing-function:linear;
    }
    

    HTML

    <div class="first_round">
    <div class="last_round">
    <div class="main_round">
    </div>
    </div>
    </div>
    

    Or if you don’t mind using a little JS, listen to animationend event…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question may not directly relate to programming. I have noticed that the technology
I am not even sure how to ask this question. I want something that
This is not exactly a straight-out question because I have just solved it, but
I realize that this problem can be solved in the future by using some
Note, this is not a duplicate of .prop() vs .attr() ; that question refers
(note that this question is not about CAS, it's about the May fail spuriously
[I hope that this question is not too broad, I think that the subject
I concede that this question may fall into the 'discussable' but not 'answerable' category.
This question seems to suggest that Ajax requests are not guaranteed to return in
this is my first question here :) I know that I should not check

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.