mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
fix: markdown styles
threejs animations
This commit is contained in:
@ -27,17 +27,11 @@ const CloudModel = () => {
|
||||
};
|
||||
const [_, api] = useSpring(
|
||||
{
|
||||
from: {
|
||||
z: camera.position.z,
|
||||
},
|
||||
z: camera.position.z,
|
||||
config: {
|
||||
duration: 1200,
|
||||
easing: easings.easeOutCirc,
|
||||
},
|
||||
to: {
|
||||
z: camera.position.z - 5.2,
|
||||
},
|
||||
pause: true,
|
||||
onChange: (e) => {
|
||||
camera.position.z = Number(e.value.z);
|
||||
},
|
||||
@ -78,7 +72,9 @@ const CloudModel = () => {
|
||||
window.addEventListener('touchmove', moveHandler);
|
||||
|
||||
setTimeout(() => {
|
||||
api.resume();
|
||||
api.start({
|
||||
z: camera.position.z - 5.2,
|
||||
});
|
||||
setDarkMode();
|
||||
}, 1000);
|
||||
|
||||
|
Reference in New Issue
Block a user