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

This commit is contained in:
bilalgursen
2026-07-30 04:22:46 +03:00
parent a1b2c4b069
commit 9139977cd6
3 changed files with 6 additions and 4 deletions

View File

@@ -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>

View File

@@ -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(