-
Notifications
You must be signed in to change notification settings - Fork 158
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
Component: Create the MVP animation / fade utility #4281
Labels
dev
Needs some dev work
package: react
Work necessary for the Carbon for IBM.com react components package
package: web components
Work necessary for the IBM.com Library web components package
priority: medium
Milestone
Comments
5 tasks
Look into using Intersection Observer API for this. |
kodiakhq bot
pushed a commit
that referenced
this issue
Jan 14, 2021
### Related Ticket(s) #4281 ### Description Utility made for adopters that will enable them to include fade in/out animations for the ibm.com web pages they build. `fadeInOut` also includes parameter of `keepAnimation`: to define whether the animation persists after the first activation (defaults to `true`) `fadeInOut` also supports custom delay duration by setting `--#{$dds-prefix}--scroll-into-view-delay` to the desired delay inside the targeted class declaration. https://user-images.githubusercontent.com/24970122/104062914-2c0bd900-51b0-11eb-92df-b81717d1ccc4.mov ``` import '@carbon/ibmdotcom-styles/scss/internal/scroll-into-view/_scroll-into-view.scss'; const selectorTargets = 'bx--content-block, bx--content-group' // React import { FadeInOut } from '@carbon/ibmdotcom-react'; <FadeInOut selectorTargets={selectorTargets} keepAnimations={false} /> // Web Component import '@carbon/ibmdotcom-web-components/es/components/fade-in-out/fade-in-out.js'; <dds-fade-in-out .selectorTargets="${selectorTargets}"></dds-fade-in-out> // custom-app.scss .bx--content-block { --#{$dds-prefix}--fade-in-out-delay: 3s; // custom delay } ``` ### Storybook Variation Added a new Storybook variation for `Dotcom Shell`, `With Fade Animations` for testing purposes. Under `Other` knobs, one can adjust the delay in seconds to give an idea of the custom delay that can be used. ### Changelog **New** - `fade-in-out` React and Web Component introduced - `With Fade Animations` Storybook variations for `Dotcom Shell` for testing purposes <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
IgnacioBecerra
added a commit
to IgnacioBecerra/ibm-dotcom-library
that referenced
this issue
Feb 22, 2021
) ### Related Ticket(s) carbon-design-system#4281 ### Description Utility made for adopters that will enable them to include fade in/out animations for the ibm.com web pages they build. `fadeInOut` also includes parameter of `keepAnimation`: to define whether the animation persists after the first activation (defaults to `true`) `fadeInOut` also supports custom delay duration by setting `--#{$dds-prefix}--scroll-into-view-delay` to the desired delay inside the targeted class declaration. https://user-images.githubusercontent.com/24970122/104062914-2c0bd900-51b0-11eb-92df-b81717d1ccc4.mov ``` import '@carbon/ibmdotcom-styles/scss/internal/scroll-into-view/_scroll-into-view.scss'; const selectorTargets = 'bx--content-block, bx--content-group' // React import { FadeInOut } from '@carbon/ibmdotcom-react'; <FadeInOut selectorTargets={selectorTargets} keepAnimations={false} /> // Web Component import '@carbon/ibmdotcom-web-components/es/components/fade-in-out/fade-in-out.js'; <dds-fade-in-out .selectorTargets="${selectorTargets}"></dds-fade-in-out> // custom-app.scss .bx--content-block { --#{$dds-prefix}--fade-in-out-delay: 3s; // custom delay } ``` ### Storybook Variation Added a new Storybook variation for `Dotcom Shell`, `With Fade Animations` for testing purposes. Under `Other` knobs, one can adjust the delay in seconds to give an idea of the custom delay that can be used. ### Changelog **New** - `fade-in-out` React and Web Component introduced - `With Fade Animations` Storybook variations for `Dotcom Shell` for testing purposes <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dev
Needs some dev work
package: react
Work necessary for the Carbon for IBM.com react components package
package: web components
Work necessary for the IBM.com Library web components package
priority: medium
User Story
Additional information
Acceptance criteria
The text was updated successfully, but these errors were encountered: