Skip to content

dnpotter001/09-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Lab 08 CSS transition

A simple CSS animation for a common visual effect, using the transition property.

How transition works

The transition property simply "prepares" an element for a style transition - it does NOT trigger the transition.

figcaption {
  /* figcaption styles here */
  transition: all .5s;
}

The styles that are transitioned are only applied to the figcaption element when they're triggered.

In this particular example, transition is triggered by hovering over thefigure element (which is the parent of the figcaption element). The transition property is then applied to all the hover styles, over 0.5 seconds.

figure:hover figcaption {
  /* figcaption hover styles here */
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published