Skip to content

[FEATURE] Animate <motion.meta name="theme-color" content={ANIMATE THIS} /> #3100

@saiichihashimoto

Description

@saiichihashimoto

Is your feature request related to a problem? Please describe.
As I'm animating my background (or something else), I'd love to animate the theme color as well.

Describe the solution you'd like
To animate content like I would any other color.

Describe alternatives you've considered

  const [themeColor, setThemeColor] = useState<string>(
    backgrounds.default[colorScheme].themeColor
  );

// ...

<motion.div
        initial={{
          backgroundColor: "green",
        }}
        animate={{
          backgroundColor: "blue",
          transition: {
            duration: 3,
          },
        }}
        onUpdate={({ backgroundColor }) =>
          setThemeColor(backgroundColor as string)
        }
      />

// ...

<meta key={name} name={name} content={themeColor} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions