0

Hey is it posible to call a css class in an other css class.

e.g.

.test { font-family: verdana;}

.test2 { test ?}

I have a lot of keyframes. and i Need this in only one css class. is it possible?

Stefan Gum
  • 67
  • 5

1 Answers1

0

I think you may want to look at how to nest CSS classes.

You can't do it in normal CSS buy you can by using Sass.

With Sass you can do this:

.test{
  font-family: verdana;
  .test2 {
    /*CSS related only to .test2*/
  }
}
  • ah ok. an nothe question: maybe it's not possible to call a keyframe in a keyframe or? – Stefan Gum Aug 10 '15 at 19:18
  • Like this @keyframes infoseite_enable { animation-name: infoseite_enable1; animation-duration: 1s; -webkit-animation-name: infoseite_enable1; /* Chrome, Safari, Opera */ -webkit-animation-duration: 1s; animation-fill-mode: forwards; -webkit-animation-fill-mode: forwards; } – Stefan Gum Aug 10 '15 at 19:19
  • I'm not sure. I've never done any animations with CSS. – Philip Read Aug 10 '15 at 19:33