Toggle elements with Stimulus and transitions
simmerz
Published — 7 months ago
Updated — about 2 hours ago
hiderevealshowstimulustoggletransitions
https://gitlab.com/initforthe/stimulus-reveal
https://gitlab.com/initforthe/stimulus-reveal/issues
MIT
Controllers available:
reveal
Requires Stimulus 1.1.1
Installation
yarn add stimulus
yarn add stimulus-reveal
import { Application } from 'stimulus'
import { definitionsFromContext } from 'stimulus/webpack-helpers'
import Reveal from 'stimulus-reveal'
const application = Application.start()
const context = require.context('controllers', true, /_controller.js$/)
application.load(definitionsFromContext(context))
application.register('reveal', Reveal)
Not using webpack? No problem.
- stimulus