I've been challenged to solve a CSS riddle

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateWeb DesignUI19 min

About this video

Kevin Powell attempts to solve a CSS riddle shared by Amit Sheen, working through transitions, timing functions and rotation until he reaches a working solution. The video is for developers who want to see how a CSS animation problem is reasoned through.

What you’ll learn

  • Diagnose why a CSS transition does not behave as expected
  • Reverse-rotate an element to counter a parent's animation
  • Decide when a CSS-only solution is worth pursuing over JavaScript