Here’s a scss way to do it using a for loop.
@for $i from 1 through 10 {
.myClass img:nth-child(#{$i}n) {
animation-delay: #{$i * 0.5}s;
}
}
More Related Contents:
- How to have multiple CSS transitions on an element?
- css3 animation on :hover; force entire animation
- CSS3 animation with gradients [duplicate]
- CSS3 Continuous Rotate Animation (Just like a loading sundial)
- How to create a pulse effect using -webkit-animation – outward rings
- How To Sync CSS Animations Across Multiple Elements?
- CSS3 Chain Animations
- IE10 – CSS animation not working
- Select every Nth element in CSS
- CSS Selector that applies to elements with two classes
- CSS selector based on element text? [duplicate]
- Pure CSS checkbox image replacement
- Handling a colon in an element ID in a CSS selector [duplicate]
- How can I correctly select the first or the last child with CSS?
- IE8 :nth-child and :before
- Invalid CSS selector causes rule to be dropped: What is the rationale?
- How can I select all children of an element except the last child?
- Style child element when hover on parent
- Combine :after with :hover
- What does the dot mean in CSS?
- :active css selector not working for IE8 and IE9
- Can a dynamic class be styled using CSS? [duplicate]
- CSS Animation onClick
- Select second last element with css
- Is there a css selector for selecting an element futherup in the html?
- How to skip first child?
- How to select all elements whose ID starts and ends with specific strings?
- selector for nth nested elements
- How can I get a specific number child using CSS?
- Latest on CSS parent selector [duplicate]