emergence.js icon indicating copy to clipboard operation
emergence.js copied to clipboard

Multiple Instances of `emergence`?

Open Splode opened this issue 8 years ago • 0 comments

Is it possible to have multiple instances of the emergence object with different options active?

Consider the following:

import * as emergeOnce from 'emergence.js'
import emergence from 'emergence.js'

emergeOnce.init({ reset: false })
emergence.init()

This is possible, but is there an option for the queryselector data-emergence to be set? If no, how about setting inline options, such as data-emergence-reset="false" for unique conditions?

Splode avatar Dec 15 '17 16:12 Splode