Observer.getById
Observer.getById( id:String ) : Observer
The Observer instance with the matching id
that was defined in the configuration vars
object (or undefined if no matching ScrollTriggers are found)
Parameters
id: String
The identifier string that was used as the Observer's id in the configuration object, like Observer.create({ id: "my-id" });
Returns : Observer
The Observer associated with the id
(or null if none is found)
Details
The Observer instance with the matching id
that was defined in the configuration vars
object, like:
Observer.create({
id: "my-id",
...
});
// then later...
let observer = Observer.getById("my-id");