Create Your First Keyframe Animation

Create Your First Keyframe Animation

# Create Your First Keyframe Animation **Previous:** [Create Your First Animation with Quick Presets](https://aninix.com/guides/create-animation-with-presets) | **Next:** [Export Your Animation to Different Formats](https://aninix.com/guides/export-animation-formats) Once you've mastered Quick Presets, it's time to unlock the full power of animation with custom keyframes. Keyframe animation gives you complete control over how your elements move, scale, rotate, and change over time. ## What are Keyframes? Keyframes are specific points in time where you define the properties of your animated elements. Aninix automatically creates smooth transitions between these keyframes, giving you precise control over your animation timing and effects. ## Creating Position Animations ### Step 1: Create Your First Keyframe Start by creating your first position keyframe at the current time: ![First Keyframe Header Position at Current Time](https://aninix-inc.github.io/blog-images/first_keyframe_header_position_at_current_time.png) This establishes the starting position for your element's animation. ### Step 2: Create a Second Keyframe Create a second keyframe for the header position at a different point in time: ![Second Keyframe Header Position](https://aninix-inc.github.io/blog-images/second_keyframe_header_position.png) This defines where your element will be at the end of the animation. ### Step 3: Adjust Keyframe Values Change the value for your first header position keyframe to create the desired movement: ![Change First Header Position Keyframe](https://aninix-inc.github.io/blog-images/change_first_header_position_keyframe.png) ### Step 4: Preview Your Animation See your position animation in action: ![Example Position Animation](https://aninix-inc.github.io/blog-images/example_position_animation.gif) ## Animating Multiple Elements ### Batch Keyframe Editing You can change keyframe values for multiple selected items at once: ![Change First Keyframes for Multiple Items](https://aninix-inc.github.io/blog-images/change_first_keyframes_for_multiple_items.png) ### Animation Timing Control Adjust the offset value for multiple animation segments to create staggered effects: ![Change Offset for Multiple Animation Segments](https://aninix-inc.github.io/blog-images/change_offset_for_multiple_animation_segments.png) ## Creating Scale Animations ### Step 1: Set the Anchor Point For better control over scaling animations, set the anchor point to middle: ![Button Change Anchor Point](https://aninix-inc.github.io/blog-images/button_change_anchor_point.png) ### Step 2: Create Scale Keyframes Create scale keyframes for button size animations: ![Button Create Scale Keyframes](https://aninix-inc.github.io/blog-images/button_create_scale_keyframes.png) ### Step 3: Modify Keyframe Values Modify the first keyframe value for the button animation to create the scaling effect: ![Button Change First Keyframe](https://aninix-inc.github.io/blog-images/button_change_first_keyframe.png) ### Step 4: View Your Completed Animation View your completed keyframe animation: ![Example Keyframe Animation](https://aninix-inc.github.io/blog-images/example_keyframe_animation.gif) ## Keyframe Animation Tips - **Plan Your Movement:** Think about the path your element should take before creating keyframes - **Use Anchor Points:** Set appropriate anchor points for scaling and rotation animations - **Timing is Key:** Experiment with keyframe timing to create different animation feels - **Preview Often:** Use the timeline scrubber to preview your animations as you build them - **Layer Effects:** Combine position, scale, and rotation keyframes for complex animations ## Advanced Techniques - **Easing:** Aninix automatically applies smooth easing between keyframes - **Multiple Properties:** Animate position, scale, rotation, and opacity simultaneously - **Staggered Animations:** Use offset values to create wave-like effects across multiple elements ## What's Next? Now that you've created your custom animation, it's time to share it with the world! Learn how to [export your animation in different formats](https://aninix.com/guides/export-animation-formats) including GIF, Lottie, and video files. You can also learn how to [preview your Lottie files](https://aninix.com/guides/preview-lottie-animation) before using them in your projects. Ready to collaborate with developers? Learn how to [share animation with developer](https://aninix.com/guides/share-animation-with-developer) to generate ready-to-use CSS code and specifications. --- - **Next:** [Export Your Animation to Different Formats](https://aninix.com/guides/export-animation-formats)