# Javascript animation doesn't work after changing field value

**URL:** <https://community.hubspot.com/t/javascript-animation-doesnt-work-after-changing-field-value/101212>\
**Category:** CMS Development\
**Tags:** professional, starter, free\
**Created:** [February 27, 2024, 3:44pm UTC](https://community.hubspot.com/t/javascript-animation-doesnt-work-after-changing-field-value/101212 "2024-02-27T15:44:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Susino](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/susino/32/200578_2.png) [@Susino](https://community.hubspot.com/u/Susino)\
**Post date:** [February 27, 2024, 3:44pm UTC](https://community.hubspot.com/t/javascript-animation-doesnt-work-after-changing-field-value/101212/1 "2024-02-27T15:44:14Z")

</div>

Hi!  
I face a problem with animation in the page editor. Please see this video.  
[https://www.loom.com/share/8b3b20d43829478d95f9a28fd66f8c20](https://www.loom.com/share/8b3b20d43829478d95f9a28fd66f8c20)  
Would you happen to have any ideas on how to fix it? Is there any event that can call the function again after editing fields?

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [February 28, 2024, 4:22pm UTC](https://community.hubspot.com/t/javascript-animation-doesnt-work-after-changing-field-value/101212/2 "2024-02-28T16:22:27Z")

</div>

Hi @Susino any time you make a change in the module settings that has JS, the editor has to be refreshed. There are a few ways this is triggered, usually this will pop-up at the bottom left of the module editor in the sidebar:

 ![Jnix284_0-1709137198867.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/1/214edd0b2bb2aa6dc435eedb9a89eb1b547f1f8b.png)

Otherwise, you will find this option:

 ![Jnix284_1-1709137318679.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/3/d3b9728099badad9ddcb4fa9ba5be42b3fbb7c46.png)

Your change is still happening, it just needs to be applied to the page if you want the preview to update due to the JS.
