# Notify when animation slider at certain value

**URL:** <https://community.plotly.com/t/notify-when-animation-slider-at-certain-value/19133>\
**Category:** plotly.js\
**Created:** [February 6, 2019, 6:49pm UTC](https://community.plotly.com/t/notify-when-animation-slider-at-certain-value/19133 "2019-02-06T18:49:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jms2](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@jms2](https://community.plotly.com/u/jms2)\
**Post date:** [February 6, 2019, 6:49pm UTC](https://community.plotly.com/t/notify-when-animation-slider-at-certain-value/19133/1 "2019-02-06T18:49:15Z")

</div>

Question on the chart animation with slider. I have events that tied to a time slider plot.

Based on this [example](https://plot.ly/javascript/gapminder-example/), when it’s year ‘1972’ for example, I want to put out info about the event happened that year.

Can I set a condition to check if slider curretvalue is 1972, then notify other UI components to update? This [slider event example](https://plot.ly/javascript/sliders/) seems to only update within plot components.

Thanks.

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [February 8, 2019, 5:02pm UTC](https://community.plotly.com/t/notify-when-animation-slider-at-certain-value/19133/2 "2019-02-08T17:02:58Z")

</div>

You can try accessing:

```auto
var gd = document.getElementById('graph')
gd._fullLayout.sliders[0].active

```

to grab the index of the active slider stop.
