Skip to content

Smooth Resizing Animation with Rotating Text #312

Answered by DavidHDev
SpyGuy0215 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, don't forget you have access to the code in this repository, meaning all of it, so you can just open the specific demo component to check: https://github.com/DavidHDev/react-bits/blob/main/src/demo/TextAnimations/RotatingTextDemo.jsx

The part you're looking for is here:

          <div className="rotating-text-demo">
            <LayoutGroup>
              <motion.p className="rotating-text-ptag" layout>
                <motion.span
                  className="pt-0.5 sm:pt-1 md:pt-2"
                  layout
                  transition={{ type: "spring", damping: 30, stiffness: 400 }}
                >
                  Creative{" "}
                </motion.span>
                <R…

Replies: 1 comment 1 reply

Comment options

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

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