Skip to content
This repository was archived by the owner on Nov 12, 2024. It is now read-only.
Discussion options

You must be logged in to vote

Sure, although its quite a lot more involved because of the clip-path and also uses a private React api. But hope this helps:

 const shadow = (size) =>
    `circle(${size}px at calc(50% + 5px) calc(50% + 5px))`

  const options = {
    offset: [0, 0.3, 0.5, 0.8, 1],
    repeat: Infinity,
    duration: 3,
    easing: [[0.17, 0.02, 0.22, 1], "linear", [0.17, 0.02, 0.22, 1], "linear"],
  }

  return (
    <SimpleContainer style="static" inViewport="animate">
      <CircleShadow
        poses={{
          static: {
            clipPath: shadow(65),
          },
          animate: {
            clipPath: [
              shadow(65),
              shadow(105),
              shadow(105),

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@martinAlt335
Comment options

Answer selected by martinAlt335
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants