el-transition
el-transition copied to clipboard
passing in transition classes via an options object?
Is it a crazy idea to be able to pass in an options object in javascript to specify the transitions needed?
Perhaps I misread the API?
Reason?
To obviate the need to repeatedly specify transition classes in html.
Proposal:
<div id="menu" data-enter-from="we have to decorate with classes every time." />
<div id="menu1" data-enter-from="we have to specify it again" />
<div id="menu2" data-enter-from="and again" />
enter(element, {enterActive: 'but we can specify all the classes we need',
enterFrom: 'via an options object which we pass in '}
).then(() =>
{console.log("there's no need to repeatedly decorate html elements if we don't want to.") })
Bad idea?