Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to see transition effect of element by change boolean toggle on story knobs. #6863

Closed
quietnumeric opened this issue May 23, 2019 · 2 comments

Comments

@quietnumeric
Copy link

quietnumeric commented May 23, 2019

Is your feature request related to a problem? Please describe.
Describe the solution you'd like

I want to see transition effect of element by change boolean toggle on story knobs.
But I saw changing state of element without transition effect.
On Vue.js (in Nuxt.js).

MyComponent:

<template>
  <div :class="{ 'is-active': isActive }" />
</template>
<script>
export default {
  props: { isActive: Boolean }
}
</script>
<style>
div {
  transform: scale(0);
  transition: transform 1s;
}
div.is-active {
  transform: scale(1);
}
</style>

storybook.story:

storiesOf('MyComponent', module).add('story', () => {
  const isActive = boolean('isActive', false);
  return {
    components: { MyComponent },
    template: `<MyComponent :isActive="${isActive}" />`,
  };
});

Describe alternatives you've considered

I think DOM should update only attributes and variants when knobs changed on UI.
Now, it seems DOM re-rendered when knobs changed on UI (at some browser's dev-tool), so I couldn't see transition effect.

Are you able to assist bring the feature to reality?

No.
I'm sorry.

Versions

"nuxt": "^2.0.0",
"@storybook/vue": "^5.0.11",
"@storybook/addon-knobs": "^5.0.11",

Additional context
N/A.

@leoyli
Copy link
Contributor

leoyli commented May 23, 2019

Duplicated #6705.

Thank you for reporting this, I think it is a duplicated issue so I will just close here. Please move to #6705 for further discussions!

@leoyli
Copy link
Contributor

leoyli commented May 31, 2019

related to #6679.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants