Questions tagged [css-animations]

CSS animations make it possible to animate transitions from one CSS style configuration to another. CSS module describes a way for authors to animate the values of CSS properties over time, using keyframes. The behavior of these keyframe animations can be controlled by specifying their duration, number of repeats, and repeating behavior.

CSS animations make it possible to animate transitions from one CSS style configuration to another. Animations consist of two components, a style describing the CSS animation and a set of keyframes that indicate the start and end states of the animation's style, as well as possible intermediate waypoints.

Properties

  • animation-delay

  • animation-direction

  • animation-duration

  • animation-iteration-count

  • animation-name

  • animation-play-state

  • animation-timing-function

  • animation-fill-mode

Animations are similar to in that they change the presentational value of CSS properties over time. The principal difference is that while transitions trigger implicitly when property values change, animations are explicitly executed when the animation properties are applied.

Example

p {
  animation-duration: 3s;
  animation-name: slidein;
}
@keyframes slidein {
  from {
    margin-left: 100%;
    width: 300%; 
  }

  to {
    margin-left: 0%;
    width: 100%;
  }
}

References

7488 questions
2
votes
3 answers

css animation how to use "reverse" for a hover and out event?

Given this code (http://jsfiddle.net/bzf1mkx5/) .intern { -webkit-animation: in 1s 1 reverse forwards; } .intern:hover { -webkit-animation: in 1s 1 normal forwards; } @-webkit-keyframes in { from { -webkit-transform:…
GWorking
  • 4,011
  • 10
  • 49
  • 90
2
votes
0 answers

jQuery expand parent div when animating a child element

// animate button $(document).ready(function() { $("#animateButton").click(function() { $("#animateButton").animate({ left: '250px', top: '300px', opaticy: '0.5px', height:…
Hanzy
  • 394
  • 4
  • 17
2
votes
1 answer

There is css animation which named 'for_box2' does not work correnctly

How you see in code my span after 'opacity:0 and rotate()' goes up, then it have to 'scale and opacity: 0' and after that go to down. But it does not goes like that, it quickly before 'scale and opacity' goes down. Just look at how it works I don't…
2
votes
2 answers

How to stop text to spin right animation?

I have the following animation which is infinite. I am trying to create rollover with a spin right animation but you see in the JSFiddle a circle turn right but I wish that the text did not turn and that it remains in the center of the circle. /*…
2
votes
1 answer

CSS animations in HTML inline

I would like to add CSS animations inline in HTML. The reason is simple, I am trying to design an email signature that includes some animations. It seems that I am not allowed to add the section. So, I am stuck. How can I either (a)…
2
votes
1 answer

Trying to smooth a scroling animation and understand why my text disappear momentaneously

I'm developping a website to learn a bit more about javascript, css and html. A draft of this website is here : http://test13111983.free.fr/ I'm having some trouble with the scrolling : scrooling up and down triggers an horizontal scroll. When I'm…
Lucas1283
  • 61
  • 1
  • 5
2
votes
2 answers

VueJS masonry layout

Currently, I'm working on the VueJS project and Its vue cli 3. I'm trying to implement MasonryJS to my Vue project, but I'm stuck. I could not understand how can I implement this kind of masonry layout for my vue project. ; (function(window)…
Momin
  • 3,200
  • 3
  • 30
  • 48
2
votes
3 answers

Animate between fontawesome icons not working in IE

I've created an animation to cycle through a set of individual FontAwesome icons. It is working on latest Firefox and Chrome, but on IE (10, 11, Edge) the icon simply doesn't change. To prove that IE is at least trying to animate, I've added the…
2
votes
1 answer

Some problem with fill color on each path // SVG CSS Animation // Mistakes between codes in Atom and codes in CodePen // SVG CSS Animation

I know there are some questions with similar problems on SO, but they don't match my current problem, I'm trying to do an animation with some path svg, on CodePen my animation works, but the class "pulse" (the color changing) doesn ' t work, it's…
TTA1EE
  • 41
  • 5
2
votes
1 answer

Getting svg to rotate correctly on hover

I'm trying to get svg circular lines to rotate from the centre point of the svg. At the minute it's rotating on it's axis which is not what i want to happen. Any ideas on how to solve this? This is my code: #lines { animation: antiClockwiseSpin…
alexkodr
  • 523
  • 3
  • 7
  • 30
2
votes
1 answer

Rectangle spinner with rounded corners

I am trying to make loader which will look like this on CodePen But I need to have rounded borders, and rectangle, not a box. So I will be able to place the logo of our company to the loader. I tried to make one more layer, which will be making…
Symorp
  • 68
  • 11
2
votes
2 answers

I need to have two animations in css, one at start and one at hover, but it isn't working

I have a div element, which has an animation to play when starting the page. I want to make it have another animation to play when I'm hovering over it. It works just fine, but when I get my mouse out of the div element, it plays the starting…
2
votes
3 answers

Rotating div using CSS

Created animation in CSS: See GIF file body { overflow: hidden; } #pre_preloader { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: #F8F8FF; z-index: 99; } #pre_status { width: 75px; …
vtcs
  • 41
  • 5
2
votes
4 answers

Sliding animation for sub rows in a table

I want to add a sliding animation for sub rows inside a table structure. When using the div tag inside a table, it does not works like a div outside of the table structure. The animation is missing and it is formatting every sub td in the first td…
FanaticTyp
  • 195
  • 4
  • 15
2
votes
2 answers

How can I animate several elements on the same orbital path in sequence?

I want to create an animation showing a few circles moving one after another in orbit. Currently, I created three circles but they appear on separate lines and thus move in a circular movement, but as a line. How can I change the code to achieve the…
Keselme
  • 3,779
  • 7
  • 36
  • 68