Summary
The clipPath effect using Motion fails to execute or render properly in the latest Google Chrome update (Version 151.0.7922.76).
The code used to work fine, but after updating to this latest version of Google Chrome, I encountered this error.
Environment
- Package: Motion V13.0.0 JavaScript
- Browser: Google Chrome Version 151.0.7922.76
- OS: macOS Tahoe V26.5
Expected Behavior
The element should smoothly animate its clipPath CSS property according to the defined motion properties.
Current Behavior
The clipPath effect does not transition smoothly. Instead, it stays locked at the initial value for the entire duration and then immediately jumps to the final value once the animation finishes.
Code
<style>
.box {
width: 150px;
height: 150px;
background-color: blue;
margin: 60px auto;
}
</style>
<div class="box"> </div>
<script src="https://cdn.jsdelivr.net/npm/motion@latest/dist/motion.js"></script>
<script>
const { animate } = Motion;
animate('.box', { clipPath: ['inset(0% 0% 0% 100% round 10px)', 'inset(0% 0% 0% 0% round 10px)'] }, { duration: 5 })
</script>
Summary
The clipPath effect using Motion fails to execute or render properly in the latest Google Chrome update (Version 151.0.7922.76).
The code used to work fine, but after updating to this latest version of Google Chrome, I encountered this error.
Environment
Expected Behavior
The element should smoothly animate its clipPath CSS property according to the defined motion properties.
Current Behavior
The clipPath effect does not transition smoothly. Instead, it stays locked at the initial value for the entire duration and then immediately jumps to the final value once the animation finishes.
Code