🥳 Enjoy 3 months of Framer for free!
TUTORIAL
TUTORIAL
TUTORIAL
#1 - Create a navigation
We are going to show a CTA in the navigation that slides in when the large CTA in the middle is out of view. For starters, let's create your navigation. Beware: Do not wrap the navigation inside a component. Once you've finished your navigation, just select your "Sign in" text layer and turn it into a new component, on which you will add a button.
#2 - Create the CTA animation
Now that you've created the CTA component, you only need to create the animation:
1. Set the height and width to fixed.
2. Set both the height and width of the CTA to 1px.
3. Set both the CTA and text to position: absolute.
4. Position the text to the right and move the button out of frame.
5. Create a new variant and return everything to their original settings on the second variant.
Now that you've created the CTA component, you are ready to make the animation.
1: Set the height and width to: fixed.
2: Set the height and width of the CTA both to: 1px.
3: Set both the CTA and text to position: absolute.
4: Position the text to the right and position the button out of frame.
5: Create new variant and return everything to their original settings on the second variant.
#3 - Create the scroll effect
Now that you've created all the components, all you need to do is add the effect. We will use the Scroll Variant effect. Before we add the effect, we need to add a Scroll section to the large CTA in the middle. This will ensure that if the large CTA scrolls out of frame, the new CTA will slide in.
1. Select the large CTA button and add a Scroll Section.
2. Select the sign-in/CTA component in your navigation and add a Scroll Variant effect.
3. Follow the settings from the video, and your Spontaneous CTA will be finished.
Now that you've created all the components. All you need to add is the effect, we will use the Scroll Variant effect. Before we will add the effect we will need to add a Scroll section to the large CTA in the middle. This will make sure that if the large CTA scrolls out of frame, the new CTA will slide in.
1: Select the CTA button and add a Scroll Section.
2: Select the sign in / CTA component in your navigation and add a Scroll Variant effect.
3: Follow the settings from the video and your Spontaneous CTA will be finished.
👋 I hope you've enjoyed today's drop.