Vollständiges Redesign mit Gold-Formularen, BMP-Logo, multi-step Forms (Bewerbung, Kontakt, Sponsoring), Netlify-Deployment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
546 B
JavaScript
21 lines
546 B
JavaScript
import { MotionValue, transformProps, acceleratedValues } from 'motion-dom';
|
|
|
|
class WillChangeMotionValue extends MotionValue {
|
|
constructor() {
|
|
super(...arguments);
|
|
this.isEnabled = false;
|
|
}
|
|
add(name) {
|
|
if (transformProps.has(name) || acceleratedValues.has(name)) {
|
|
this.isEnabled = true;
|
|
this.update();
|
|
}
|
|
}
|
|
update() {
|
|
this.set(this.isEnabled ? "transform" : "auto");
|
|
}
|
|
}
|
|
|
|
export { WillChangeMotionValue };
|
|
//# sourceMappingURL=WillChangeMotionValue.mjs.map
|