Index of every page on this site: llms.txt
All skills
Run it yourself

Production animation patterns for React Native using Reanimated 4, Skia, WebGPU, and TypeGPU. Covers CSS transitions, CSS animations, CSS pseudo-selectors, CSS callbacks, shared value animations, canvas animations with react-native-skia, GPU shader animations, layout animations, scroll-driven animations, particle systems, procedural noise, SDF rendering, performance tuning, and accessibility. Trigger on: Reanimated, useSharedValue, useAnimatedStyle, withSpring, withTiming, withDecay, withRepeat, withSequence, CSS transition, CSS animation, layout animation, FadeIn, SlideIn, ZoomIn, LinearTransition, keyframe, interpolate, scrollTo, useFrameCallback, react-native-skia, Skia Canvas, Atlas, usePathInterpolation, usePathValue, useClock, useTexture, SKSL, interpolateColors, Picture API, canvas animation, sprite animation, WebGPU, react-native-wgpu, TypeGPU, GPU shader, WGSL, particle system, Perlin noise, SDF, Three.js, react-three-fiber, animation performance, or any request to animate UI in React Native.

Use this Skill: https://skilld.dev/gh/software-mansion-labs/skills/animations

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

svg-animations.md

≈559 tokens on demand. Your agent reads this file only when SKILL.md points to it.

SVG Animation Patterns

react-native-svg implements the SVG standard as a React component tree, giving you full control over every element in an SVG — including the ability to animate or dynamically change individual parts. Every SVG element becomes a native view.


Animating SVG Elements with Reanimated

Use Animated.createAnimatedComponent to make any SVG element animatable.

Do all value conversions directly inside the useAnimatedStyle or useAnimatedProps callback. Do not use SVGAdapter — handle conversions (string formatting, color processing, unit calculations) in place within the callback:

import Animated, {
  useSharedValue,
  useAnimatedProps,
  withRepeat,
  withTiming,
} from 'react-native-reanimated';
import { Circle, Svg } from 'react-native-svg';

const AnimatedCircle = Animated.createAnimatedComponent(Circle);

export default function PulsingCircle() {
  const radius = useSharedValue(30);

  radius.value = withRepeat(withTiming(50, { duration: 600 }), -1, true);

  const animatedProps = useAnimatedProps(() => ({
    r: radius.value,
  }));

  return (
    <Svg width={120} height={120}>
      <AnimatedCircle cx={60} cy={60} animatedProps={animatedProps} fill="tomato" />
    </Svg>
  );
}

Animating SVG Path (e.g. Progress Arc)

import Animated, {
  useSharedValue,
  useAnimatedProps,
  withTiming,
} from 'react-native-reanimated';
import { Path, Svg } from 'react-native-svg';

const AnimatedPath = Animated.createAnimatedComponent(Path);

export default function ProgressArc({ progress }: { progress: number }) {
  const animatedProgress = useSharedValue(0);
  animatedProgress.value = withTiming(progress, { duration: 800 });

  const animatedProps = useAnimatedProps(() => {
    const angle = animatedProgress.value * 2 * Math.PI;
    const x = 60 + 50 * Math.cos(angle - Math.PI / 2);
    const y = 60 + 50 * Math.sin(angle - Math.PI / 2);
    const largeArc = animatedProgress.value > 0.5 ? 1 : 0;
    return {
      d: `M 60 10 A 50 50 0 ${largeArc} 1 ${x} ${y}`,
    };
  });

  return (
    <Svg width={120} height={120}>
      <AnimatedPath animatedProps={animatedProps} stroke="tomato" strokeWidth={4} fill="none" />
    </Svg>
  );
}

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides comprehensive documentation and production patterns for React Native animations using Reanimated 4, Skia, and WebGPU. It includes instructions for environment setup, package installation, and configuration for the New Architecture. All referenced resources, including Node.js packages and external documentation, belong to the vendor (Software Mansion) or established community libraries. No malicious patterns or security risks were identified.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 43cde80. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 months ago

README badge

README badge for software-mansion-labs/skills/animations