~/talk

Animating an SVG cat with React.js

Talkat React Live 2019 · on Friday, 2019-09-13· [react, web-animation, web-platform]
slides:none on file

Imports an SVG into a React app, runs SVGR CLI to optimize and convert it into GSX, replaces hardcoded colors with a color prop, and computes aspect ratio (width/height ≈ 0.84) to make a size prop work. Animations use Framer Motion: eyes animate with scaleY 1→0.1→1 (duration 0.25s, repeatDelay 4s) and the tail rotates 0→20→0 with adjusted transform-origin and a translateX fix. Result is a customizable SVG cat component that blinks and wags and renders correctly.

AI-written summary · about

  1. 0:00Intro
  2. 0:35About Elizabet
  3. 1:18What is an SVG
  4. 1:45Wikipedia definition
  5. 2:24Why is SVG different
  6. 2:39SVG file size
  7. 3:07How to use the SVG
  8. 3:50Why would you do this
  9. 4:07Importing React components
  10. 5:16Inspecting SVG
  11. 5:54Importing as React components
  12. 6:18The bad thing about this method
  13. 6:46The second way
  14. 7:15Sketch
  15. 7:30Shading
  16. 10:58Config file
  17. 15:43Aspect ratio
  18. 16:52Frame Emotion
  19. 18:03Motion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.