mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
v0.0.2 (#144)
* chore(Geist): bump geist font to v1.0.1 * refactor(_typography.scss): split the CSS lang tag to ensure compatibility with Chromium-based browsers * refactor(stage.ts): bump up preload count on desktop * feat(params.toml): add support for user defined resize option * feat(_fonts.scss): add a new font file to better support fullwidth plus and minus * refactor(info): update info * chore(build.yml): update branch name for updating bundled artifacts to include the current date * chore(package.json): update version from 0.0.1 to v0.0.2 to reflect changes made in the codebase
This commit is contained in:
@@ -53,10 +53,10 @@ function getElCurrent(): HTMLImageElement {
|
||||
return elTrail[elTrail.length - 1]
|
||||
}
|
||||
|
||||
function getElNextFive(): HTMLImageElement[] {
|
||||
function getElNextSeven(): HTMLImageElement[] {
|
||||
const s = state.get()
|
||||
const els = []
|
||||
for (let i = 0; i < 5; i++) {
|
||||
for (let i = 0; i < 7; i++) {
|
||||
els.push(imgs[increment(s.index + i, s.length)])
|
||||
}
|
||||
return els
|
||||
@@ -97,7 +97,7 @@ function setPositions(): void {
|
||||
if (elTrail.length === 0 || !gsapLoaded) return
|
||||
|
||||
// preload
|
||||
lores(getElNextFive())
|
||||
lores(getElNextSeven())
|
||||
|
||||
_gsap.set(elTrail, {
|
||||
x: (i: number) => cordHist.get()[i].x - window.innerWidth / 2,
|
||||
@@ -228,7 +228,7 @@ export function initStage(ijs: ImageJSON[]): void {
|
||||
setPositions()
|
||||
})
|
||||
// preload
|
||||
lores(getElNextFive())
|
||||
lores(getElNextSeven())
|
||||
// dynamic import
|
||||
window.addEventListener(
|
||||
'mousemove',
|
||||
|
||||
Reference in New Issue
Block a user