Skip to main content

Utilities Transitions

Transitions is a collection of micro-classes to control transitions.

Abbreviations:

PrefixFunction
.trs-transition-name
.trsde-transition-delay
.trsdu-transition-duration
.trstf-transition-timing-function

To trigger a transition, add the class trs to the element. You should only add the class to the outermost element with a trs- class, children will be animated automatically.


Transitions

Fade

NameValue
.trs-fddFade Down
.trs-fdlFade Down Left
.trs-fdrFade Down Right
.trs-falFade Left
.trs-farFade Right
.trs-fauFade Up
.trs-fulFade Up Left
.trs-furFade Up Right

Flip

NameValue
.trs-fldFlip Down
.trs-fllFlip Left
.trs-flrFlip Right
.trs-fluFlip Up

Zoom

NameValue
.trs-zoiZoom In
.trs-zodZoom In Down
.trs-ziuZoom In Up
.trs-zooZoom Out

Delays

NameValue
.trsde-00ms
.trsde-2525ms
.trsde-5050ms
.trsde-7575ms
.trsde-100100ms
.trsde-150150ms
.trsde-250250ms
.trsde-375375ms
.trsde-500500ms
.trsde-750750ms
.trsde-10001000ms
.trsde-15001500ms
.trsde-20002000ms

Duration

NameValue
.trsdu-100100ms
.trsdu-200200ms
.trsdu-300300ms
.trsdu-400400ms
.trsdu-500500ms
.trsdu-750750ms
.trsdu-10001000ms
.trsdu-15001500ms
.trsdu-20002000ms

Timing Functions (Easings)

NameValue
.trstf-eas-1ease-1
.trstf-eas-2ease-2
.trstf-eas-3ease-3
.trstf-eas-4ease-4
.trstf-eas-5ease-5
.trstf-eai-1ease-in-1
.trstf-eai-2ease-in-2
.trstf-eai-3ease-in-3
.trstf-eai-4ease-in-4
.trstf-eai-5ease-in-5
.trstf-eao-1ease-out-1
.trstf-eao-2ease-out-2
.trstf-eao-3ease-out-3
.trstf-eao-4ease-out-4
.trstf-eao-5ease-out-5
.trstf-eio-1ease-in-out-1
.trstf-eio-2ease-in-out-2
.trstf-eio-3ease-in-out-3
.trstf-eio-4ease-in-out-4
.trstf-eio-5ease-in-out-5
.trstf-eel-1ease-elastic-1
.trstf-eel-2ease-elastic-2
.trstf-eel-3ease-elastic-3
.trstf-eel-4ease-elastic-4
.trstf-eel-5ease-elastic-5
.trstf-esq-1ease-squish-1
.trstf-esq-2ease-squish-2
.trstf-esq-3easing-squish-3
.trstf-esq-4easing-squish-4
.trstf-esq-5easing-squish-5
.trstf-linlinear

Example

<div class="trsde-250"> <!-- master delay 250ms -->
<img src="assets/image.jpg" alt="" class="trs-fur"> <!-- fade-up-right -->
<div>
<strong class="trs-fdr">Tagline</strong> <!-- fade-down-right -->
<h2 class="trs-fdd">Headline</h2> <!-- fade-down -->
<button class="trs-fau">CTA</button> <!-- fade-up -->
</div>
</div>
</div>

To trigger these transitions, add the class trs to the outermost element.