We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86f8f8a commit 02a12afCopy full SHA for 02a12af
packages/create-svelte/templates/default/src/lib/Counter.svelte
@@ -22,7 +22,7 @@
22
23
<div class="counter-viewport">
24
<div class="counter-digits" style="transform: translate(0, {100 * offset}%)">
25
- <strong style="top: -100%" aria-hidden="true">{Math.floor($displayed_count + 1)}</strong>
+ <strong class="hidden" aria-hidden="true">{Math.floor($displayed_count + 1)}</strong>
26
<strong>{Math.floor($displayed_count)}</strong>
27
</div>
28
@@ -94,4 +94,9 @@
94
width: 100%;
95
height: 100%;
96
}
97
+
98
+ .hidden {
99
+ top: -100%;
100
+ user-select: none;
101
+ }
102
</style>
0 commit comments