-
Notifications
You must be signed in to change notification settings - Fork 1
Provided Mixins
riccomediamonks edited this page Jul 16, 2018
·
15 revisions
This mixin extends the mubanTransitionCoreMixin.
After extending this mixin a couple of methods are added to your component, you can see all of them in the generated documentation. See below for the most common ones!
- Description: Calling transition in will trigger transitionIn on your transition controller and
- start the desired timeline.
- Parameters
-
forceTransition
- type:
boolean
- required:
false
- description: Add this flag if you want to overwrite any active transitions
- type:
-
- Returns
Promise<void>
- Description: Calling transition out will trigger transitionOut on your transition controller and
- start the desired timeline.
- Parameters
-
forceTransition
- type:
boolean
- required:
false
- description: this flag if you want to overwrite any active transitions
- type:
-
id
- type:
string
- required:
false
- description: This is the id of the transition out timeline that you want to play
- type:
-
reset
- type:
boolean
- required:
false
- description: If the reset flag is set to true it will re-initialize the current timeline
- type:
-
- Returns
Promise<void>
- Description: This method is triggered when a
data-scroll-component
component enters the view. - Returns
<void>
- Description: This method is triggered when a
data-scroll-component
component leaves the view. - Returns
<void>
- Description: This method is triggered when the scrollbar is dragged down super fast the default enter view event might not be triggered therefor we have a beyondView event! If it's already transitioned in it will do nothing! But if it's not transitioned in it will still try to transitionIn
- Returns
<void>
- Description: Start the looping animations on the current component
- Parameters
-
id
- type:
string
- required:
false
- description: This is the id of the transition out timeline that you want to play
- type:
-
reset
- type:
boolean
- required:
false
- description: If the reset flag is set to true it will re-initialize the current timeline
- type:
-
- Returns
<void>
- Description: This will stop the current looping animation, keep in mind it will not reset it just stop at the current state
- Returns
<void>
After extending this mixin a couple of properties are added to your component, you can see all of them in the generated documentation. See below for the most common ones!
- Type:
number
- Description: Contains a number between 0 - 1. Setting this number to for example 0.5 will trigger the
enterView
method when thedata-scroll-component
component is already visible for 50% within your viewport.
- Description: The transition controller for the component
This extends the coreComponent
After extending this mixin a couple of properties are added to your component, you can see all of them in the generated documentation. See below for the most common ones!
- Type:
string
- Description: contains an unique generated number.
- Type:
EventDispatcher
- Description: Base class that adds the ability to dispatch events and attach handlers that should becalled when such events are triggered. seng-event
- Type:
string
- Description: Contains the name of the component
- Type:
string
- Description: Contains an unique id, combination of
displayName
andeventNamespace