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

DS-692 Animation Tool Set #2419

Merged
merged 64 commits into from
Feb 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
c499264
DS-692: Create animations folder and exemplary import
Jan 11, 2022
d934ae9
DS-692: animation base
Jan 12, 2022
38dfb1f
DS-692: fadein options
Jan 12, 2022
ef3d0de
DS-692: fadeout
Jan 12, 2022
a7cb87d
DS-692: update styles imports
Jan 12, 2022
526d60a
DS-692: update dev sandbox
Jan 13, 2022
17ee85d
DS-692: animation base update
Jan 14, 2022
7e4099b
DS-692: animation fade outs
Jan 14, 2022
7f262c0
DS-692: animation update index
Jan 14, 2022
4143310
DS-692: reduced motion
Jan 14, 2022
fd928f7
DS-692: animation durations
Jan 14, 2022
81cbe4e
DS-692: animation transforms update and add timing-functions
Jan 14, 2022
3938eac
DS-692: animation transforms update and add timing-functions
Jan 14, 2022
cd6ae72
DS-692: animation sample pages
Jan 14, 2022
3c98d8e
DS-692: Update specific animations with names
Jan 18, 2022
16ed431
DS-692: Animation base update
Jan 18, 2022
12b68d7
DS-692: Add js scripts for testing performance
Jan 18, 2022
9c3582f
DS-692: Add video test page
Jan 18, 2022
1d309f7
DS-692: Grid update
Jan 18, 2022
1829370
DS-692: Change class names and css delays values
Jan 19, 2022
c298a1f
DS-692: Update test pages
Jan 19, 2022
7847f56
DS-692: Script draft onload
Jan 19, 2022
08c4290
Merge branch 'master' of https://github.com/boltdesignsystem/bolt int…
Jan 19, 2022
a1276d2
DS-692: Add delay classes
Jan 19, 2022
0505bb5
DS-692: Change request - reduce motion refactor
Jan 21, 2022
12a50e3
DS-692: Change request - rename keyframes
Jan 21, 2022
a7afeab
DS-692: Remove comments
Jan 21, 2022
12e9d50
DS-692: Change request - don't run this JS if 'prefer reduced motion'…
Jan 21, 2022
1c73c9f
DS-692: Change request - don't run a function if prefer reduced motio…
Jan 21, 2022
a760d65
DS-692: Change request - revert for now
Jan 21, 2022
d1d909d
DS-692: merge
Jan 24, 2022
2ffb908
DS-692: Change request: refactor css
Jan 24, 2022
57f1811
DS-692: Change request: rename the class
Jan 24, 2022
01c7893
DS-692: Change request: rework animation base css
Jan 26, 2022
2bc46ad
DS-692: Change request: rework fade in up css
Jan 26, 2022
155cf9a
DS-692: Change request: rework fade out up css
Jan 26, 2022
5b84a91
DS-692: Change request: rework on load js script
Jan 26, 2022
968d846
DS-692: Change request: rework on icons fade in test page
Jan 26, 2022
49a50d3
DS-692: Change request: rename a file
Jan 26, 2022
cc36b41
DS-692: Change request: all fade ins in one file
Jan 26, 2022
189d51a
DS-692: Change request: all fade outs in a one file
Jan 26, 2022
a7af5ae
DS-692: Change classes in a gallery test page
Jan 26, 2022
77769e7
DS-692: Change classes in a video test page
Jan 26, 2022
a621b14
DS-692: Change classes in a banner test page
Jan 26, 2022
799ee4c
DS-692: Change request: transfer animation-timing-functions from spec…
Jan 26, 2022
8bbd52f
DS-692: Change request: animation zoom in
Jan 26, 2022
46319a7
DS-692: Change request: animation bounce in
Jan 26, 2022
de7b57e
DS-692: Delete comments
Jan 26, 2022
c5b78c1
DS-692: Calc durations
Jan 26, 2022
f627204
DS-692: banner test page update
Jan 26, 2022
63073b7
DS-692: animation bounce out
Jan 26, 2022
2501223
DS-692: banner test page update
Jan 27, 2022
d18e14e
DS-692: animation zoom in update
Jan 27, 2022
68d27fb
DS-692: animation zoom out
Jan 27, 2022
06c96f4
DS-692: index scss imports
Jan 27, 2022
d7ce06f
DS-692: Change request - remove durations options
Jan 27, 2022
8af4bac
DS-692: update test pages
Jan 27, 2022
8560c31
ds-692: reduce cascade to 25
mikemai2awesome Jan 27, 2022
812b0f0
ds-692: remove test code
mikemai2awesome Jan 27, 2022
583468f
ds-692: re-organize root variables
mikemai2awesome Jan 27, 2022
8047000
DS-692: Replace cascade CSS with JS solution
danielamorse Jan 28, 2022
b4151dd
DS-692: Rework demo JS
danielamorse Jan 28, 2022
7ecdb51
Merge pull request #2428 from boltdesignsystem/feature/DS-692-animati…
danielamorse Feb 25, 2022
c590233
Merge branch 'master' into feature/DS-692-animation-tool-set
danielamorse Feb 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<p>An example of all fade ins on a banner component, (20 elements in total), triggered on window load. Click on the banner to see the specific single animation.</p>

{% set fades = ['-in--fade', '-in--fade-up', '-in--fade-down', '-in--fade-left', '-in--fade-right'] %}

{% for i in 1..4 %}
{% for fade in fades %}
{% include '@bolt-components-banner/banner.twig' with {
content: 'This is the banner content fade' ~ fade,
attributes: {
class: [
'a-bolt' ~ fade,
'a-bolt-cascade-fast'
],
}
} only %}
{% endfor %}
{% endfor %}

<script>

const fadeEl = document.querySelectorAll('[class*="a-bolt-"]');

// Repeat single specific fade on click
function triggerThisEl({ target }) {
const prefix = 'a-bolt-in--';
const runAnimationClasses = [];

target.classList.forEach(c => {
if (c.startsWith(prefix)) {
runAnimationClasses.push(c);
target.classList.remove(c);
}
});

setTimeout(() => {
target.classList.add(...runAnimationClasses);
}, 0);
}

fadeEl.forEach(el => {
el.addEventListener('click', triggerThisEl);
});

</script>
danielamorse marked this conversation as resolved.
Show resolved Hide resolved