From b1f7094d57359efddb36e4dc29a9f91816adb72a Mon Sep 17 00:00:00 2001 From: 30secondsofcode <30secondsofcode@gmail.com> Date: Mon, 16 Mar 2020 10:20:07 +0000 Subject: [PATCH] Travis build: 726 --- snippet_data/snippetList.json | 15 +++++++++++++++ snippet_data/snippets.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/snippet_data/snippetList.json b/snippet_data/snippetList.json index 13e9c4ed2..6bb4aeebf 100644 --- a/snippet_data/snippetList.json +++ b/snippet_data/snippetList.json @@ -662,6 +662,21 @@ "hash": "35bfb52929dcbd21c120d555c9d3382154f47b661d31722ffb3d21281021bba3" } }, + { + "id": "staggered-animation", + "type": "snippetListing", + "title": "Staggered animation", + "attributes": { + "text": "Creates a staggered animation for the elements of a list.\n\n", + "tags": [ + "animation", + "advanced" + ] + }, + "meta": { + "hash": "b1dc6f9fcc5cc91b59e89864b568048040e1879b2fc165d580cd21bc3fb73e50" + } + }, { "id": "system-font-stack", "type": "snippetListing", diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index 4be60321c..6a1a76bf4 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -1366,6 +1366,37 @@ "authorCount": 4 } }, + { + "id": "staggered-animation", + "title": "Staggered animation", + "type": "snippet", + "attributes": { + "fileName": "staggered-animation.md", + "text": "Creates a staggered animation for the elements of a list.\n\n", + "explanation": "\n\n- Set the `opacity` to `0` and `transform` to `translateX(100%)` to make list elements transparent and move them all the way to the right.\n- Specify the appropriate `transition` properties for list elements, except `transition-delay` which is specified relative to the `--i` custom property.\n- Use inline styles to specify a value for `--i` for each list element, which will in turn be used for `transition-delay` to create the stagger effect.\n- Use the `:checked` selector for the checkbox to appropriately style list elements, setting `opacity` to `1` and `transform` to `translateX(0)` to make them appear and slide into view.\n\n", + "browserSupport": { + "text": "\n\n- https://caniuse.com/#feat=css-variables\n- https://caniuse.com/#feat=css-transitions\n", + "supportPercentage": 98.68 + }, + "codeBlocks": { + "html": "