@braccato/core 2.0.0-beta.0 → 2.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -114,6 +114,22 @@ replace one side: lines already sung, or still to come. Values between whole lin
114
114
  the last value holds past the end, and blurs are the standard deviation, as CSS `blur()` takes it.
115
115
  The distance follows the scroll smoothly, and the effects ease off while the reader scrolls.
116
116
 
117
+ The line under the mouse can look different, as a `:hover` rule made it in the DOM renderer. Each
118
+ value the theme sets replaces the line's own while the pointer is on it, and leaving it unset keeps
119
+ the line as it is:
120
+
121
+ ```css
122
+ .blyrics-container {
123
+ --blyrics-line-hover-opacity: 1; /* over the distance opacity */
124
+ --blyrics-line-hover-blur: 0; /* over the distance blur; px, rem or blur(…) */
125
+ --blyrics-line-hover-scale: 1.04; /* over --blyrics-scale / --blyrics-active-scale */
126
+ --blyrics-line-hover-duration: 0.2s;
127
+ --blyrics-line-hover-easing: ease;
128
+ }
129
+ ```
130
+
131
+ Touch has no hover, so a tap never leaves a line looking hovered.
132
+
117
133
  ## How it works
118
134
 
119
135
  The lines are laid out by the browser in an invisible copy of `@braccato/core`'s markup, inside the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@braccato/core",
3
- "version": "2.0.0-beta.0",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "Synchronized lyrics renderer with word-by-word animations, in Rust and WebGL2",
5
5
  "type": "module",
6
6
  "license": "MIT",
Binary file