Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular keyframes %

// the provided offset values
animate("5s", keyframes([
  style({ backgroundColor: "red", offset: 0 }), // 0%
  style({ backgroundColor: "blue", offset: 0.2 }), // 20%
  style({ backgroundColor: "orange", offset: 0.3 }), // 30%
  style({ backgroundColor: "black", offset: 1 }) // 100%
]))
 
PREVIOUS NEXT
Tagged: #angular #keyframes
ADD COMMENT
Topic
Name
6+2 =