---
title: "Discussion on \"Animate on Button Click | Motion, NextJS\" | Hashnode"
description: "Discussion on \"Animate on Button Click | Motion, NextJS\". In this article, we will explore how to animate elements on a button click using the motion library (formerly known as framer-motion). We will demonstrate this with examples that use:\n\nuseAnimate hook\n\nmotion elements from the library\n\n\nInstall motio..."
url: "https://hashnode.com/posts/animate-on-button-click-motion-nextjs/679395f02728cf58cca4e3e0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Animate on Button Click | Motion, NextJS](https://saakarx.hashnode.dev/animate-on-button-click-motion-nextjs?utm_source=hashnode&utm_medium=feed)

In this article, we will explore how to animate elements on a button click using the motion library (formerly known as framer-motion). We will demonstrate this with examples that use: useAnimate hook motion elements from the library Install motio...

Jan 24, 2025 · 3 min read · saakarx.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#motion](https://hashnode.com/tag/motion)

## Written by

[Saakar Gogia](https://hashnode.com/@saakarx)

@saakarx

  
[View profile](https://hashnode.com/@saakarx)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
