Skip to content

Instantly share code, notes, and snippets.

@TimonVS
Last active December 13, 2015 18:16
Show Gist options
  • Save TimonVS/a4926c2df11aee1c6f69 to your computer and use it in GitHub Desktop.
Save TimonVS/a4926c2df11aee1c6f69 to your computer and use it in GitHub Desktop.
# De index van de huidige pagina
current = page.horizontalPageIndex(page.currentPage)
# Maak de eerste indicator actief
allIndicators[current].states.switch("active")
page.on "change:currentPage", ->
# Maak alle indicators inactief
indicator.states.switch("default") for indicator in allIndicators
current = page.horizontalPageIndex(page.currentPage)
# Maak de indicator van de huidige pagina actief
allIndicators[current].states.switch("active")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment