Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Kristján Oddsson 7f3abaec95
Merge branch 'main' of github.com:github/typing-effect-element into hazukitenki/main 2021-06-04 09:59:14 +01:00
Jamie C 77fe7b0a6b Replace reduceMotion logic check in typeLines with characterDelay value check. Also adds a condition to skip the await call for lines if lineDelay is not 0. 2021-06-02 14:40:29 -05:00
Tenki 7476b94ce4 Fix Delay Attributes
Fixed the bug that lineDelay and characterDelay aren't parsed correctly
2021-06-03 00:46:32 +08:00
Jamie C b07b9ba87a Adds mock condition for window.matchMedia for default case (prevents the test from setting delay to 0 when user has reduced motion set on their system). Removes code paths and mentions of attribute data-reduced-motion because including an escape hatch right now might be a bit confusing. 2021-06-01 16:08:44 -05:00
Jamie C dcfafd265d Adds a condition for reduced motion where the data-reduced-motion attribute will override the window media match. If data-reduced-motion is set to true, the component will NOT animate. If data-reduced-motion is set to false, the component WILL animate. 2021-05-27 14:01:32 -05:00
Jamie C 7478979f4f Appends line content without delay instead of character by character for reduced motion setting. 2021-05-27 13:11:16 -05:00
Jamie C f98bd8b7c0 Adds tests and getters to set character and line delay to 0 when reduced motion is preferred by user. 2021-05-27 12:43:09 -05:00
Nick Holden 7072a51d8b
Add real tests 2021-04-08 18:53:04 -07:00
Nick Holden 67dab0f729
Extract <typing-effect> from GitHub 2021-04-08 18:06:25 -07:00
Nick Holden b83bed53d9 Initial commit 2021-04-08 17:57:50 -07:00