Update Parallax component style formatting and enhance pixel heat function readability. Update app.db to reflect recent changes.
All checks were successful
Deploy / deploy (push) Successful in 2m56s
All checks were successful
Deploy / deploy (push) Successful in 2m56s
This commit is contained in:
@@ -54,9 +54,7 @@ export function Parallax({
|
||||
className={className}
|
||||
// willChange: kayma 0'dan geçerken katmanın compositor'dan düşüp
|
||||
// tekrar oluşturulmasını (raster churn) engeller
|
||||
style={
|
||||
reduceMotion ? { y: 0 } : { y, willChange: "transform" }
|
||||
}
|
||||
style={reduceMotion ? { y: 0 } : { y, willChange: "transform" }}
|
||||
>
|
||||
{children}
|
||||
</motion.div>
|
||||
|
||||
@@ -88,7 +88,11 @@ export function usePixelHeat(
|
||||
const isHot = d2 <= radius * radius;
|
||||
if (isHot && !hot.has(p.el)) {
|
||||
hot.add(p.el);
|
||||
run(p.el, { fill: HOT_COLOR, fillOpacity: HOT_OPACITY }, HEAT_DURATION);
|
||||
run(
|
||||
p.el,
|
||||
{ fill: HOT_COLOR, fillOpacity: HOT_OPACITY },
|
||||
HEAT_DURATION,
|
||||
);
|
||||
} else if (!isHot && hot.has(p.el)) {
|
||||
hot.delete(p.el);
|
||||
run(
|
||||
|
||||
Reference in New Issue
Block a user