From 24cec6f4f4fe9b46895260775b0af2353cce8483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20=C3=85berg=20Kultalahti?= Date: Wed, 8 Jan 2020 22:15:14 +0100 Subject: [PATCH] Adds documentation for global @keyframes --- site/content/docs/01-component-format.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/site/content/docs/01-component-format.md b/site/content/docs/01-component-format.md index d540a998c8..3b120bfbf5 100644 --- a/site/content/docs/01-component-format.md +++ b/site/content/docs/01-component-format.md @@ -253,3 +253,13 @@ To apply styles to a selector globally, use the `:global(...)` modifier. } ``` + +If you want to make @keyframes that are accesible globally you need to prepend your keyframe names with `-global-`. + +```html + +``` + +The `-global-` part will be remove when compiled and the keyframe then be referenced using just `my-animation-name` elsewhere in your code.