Skip to content

Commit

Permalink
Don't scale models on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
joebinns committed Jan 13, 2025
1 parent 3b6a494 commit e9183fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ModelPreviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,13 @@ export class ModelPreviewer{
}
hovered = THREE.MathUtils.clamp(hovered, 0, 1);

/*
// Scale the objects based on appeared and hovered
this.portfolioItems.forEach(item => {
let scale = item.appeared + 0.15 * cubicBezier(hovered);
let scale = item.appeared; //+ 0.15 * cubicBezier(hovered);
item.object.scale.set(scale, scale, scale);
});
*/

// Decelerate angular speed
angularSpeed -= deltaTime * angularSpeed * angularDamper;
Expand Down

0 comments on commit e9183fb

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy