---
title: "Discussion on \"How to add shake animation on input:invalid\" | Hashnode"
description: "Discussion on \"How to add shake animation on input:invalid\". In this short article we'll create a simple HTML with an input tag in a form tag and animate the input when user input is not valid.\nThis might seem a bit difficult and you may think  you need Javascript to complete this task,but with only HTML and C..."
url: "https://hashnode.com/posts/how-to-add-shake-animation-on-inputinvalid/63320c1e4dd8b2344a769e91"
---

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

Discussion

# [How to add shake animation on input:invalid](https://devsteve.hashnode.dev/how-to-add-shake-animation-on-inputinvalid?utm_source=hashnode&utm_medium=feed)

In this short article we'll create a simple HTML with an input tag in a form tag and animate the input when user input is not valid. This might seem a bit difficult and you may think you need Javascript to complete this task,but with only HTML and C...

Sep 26, 2022 · 1 min read · devsteve.hashnode.dev  
Read the article

-   [#html5](https://hashnode.com/tag/html5)
-   [#css](https://hashnode.com/tag/css)
-   [#css-animation](https://hashnode.com/tag/css-animation)
-   [#keyframes](https://hashnode.com/tag/keyframes)
-   [#inputs](https://hashnode.com/tag/inputs)

## Written by

[Stephen Okyere](https://hashnode.com/@devSteve)

@devSteve · Accra

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

Frontend Developer

Tech enthusiast! Love to learn new stuff always

## Responses 1

Markdown supported · ⌘↵ to post

[Kunal Yadav](https://hashnode.com/@kunaaal13)

[Sep 27, 2022](https://hashnode.com/posts/how-to-add-shake-animation-on-inputinvalid/63320c1e4dd8b2344a769e91/comment/63327d8c67534f360ca95f61)

That is cool, i didn't know about this. Thank you!!

[Stephen Okyere](https://hashnode.com/@devSteve)

[Sep 27, 2022](https://hashnode.com/posts/how-to-add-shake-animation-on-inputinvalid/63320c1e4dd8b2344a769e91/comment/63327d8c67534f360ca95f61#reply-6332bd27c7320848600861dc)

You're welcome, Glad you liked it man!
