Styles: Keyframes

The Handoff CSS includes a number of keyframes for use in animations and transitions.

Styles: Keyframes

The Handoff CSS includes a number of keyframes for use in animations and transitions.

These keyframes are defined in shared/common/_keyframes.scss

Ticker Keyframes

This definition is used in the ticker component to create a number roll effect.

Create a ticker animation
1// For use in the ticker 2@keyframes ticker { 3 0% { 4 transform: translate3d(0, 0, 0); 5 } 6 100% { 7 transform: translate3d(-100%, 0, 0); 8 } 9} 10 11// For use in upward ticker 12@keyframes tickerUp { 13 0% { 14 transform: translate3d(0, 0, 0); 15 } 16 100% { 17 transform: translate3d(0, -100%, 0); 18 } 19}

Blink Keyframes

This definition is used in the blink animation to create a blinking effect.

Create a blinking animation
1// For use in blink animation 2@keyframes blink { 3 0%, 4 100% { 5 border-color: var(--color-primary-blue); 6 } 7 50% { 8 border-color: transparent; 9 } 10}