refactor: use classic for conditional classes
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
</style>
|
||||
|
||||
<script lang="ts">
|
||||
import cx from 'classix'
|
||||
import { map } from 'utils/math'
|
||||
import reveal from '$animations/reveal'
|
||||
|
||||
@@ -39,11 +40,11 @@
|
||||
parallax = isLarger ? map(scrollY, offsetStart, offsetEnd, 0, -toTranslate, true) : 0
|
||||
}
|
||||
|
||||
const classes = [
|
||||
$: classes = cx(
|
||||
'scrolling-title',
|
||||
'title-huge',
|
||||
$$props.class
|
||||
].join(' ').trim()
|
||||
)
|
||||
|
||||
const revealOptions = animate ? {
|
||||
children: '.char',
|
||||
|
||||
Reference in New Issue
Block a user