How to adjust the speed of fadein and fadeout

Hi, I would like to know how to adjust the speed of fadeIn and fadeOut.
Here is the link to my pen

hi @yongyili921,
first, there’s no <p1> tag in html. use <p> instead, then for css and js, select the element by its class name or id.
animation duration is set in
override this css

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both
1 Like