Skip to content

Instantly share code, notes, and snippets.

@kobitoDevelopment
Last active November 17, 2025 16:49
Show Gist options
  • Select an option

  • Save kobitoDevelopment/9bce662a9cd3ac94c9c1ab765a950ff1 to your computer and use it in GitHub Desktop.

Select an option

Save kobitoDevelopment/9bce662a9cd3ac94c9c1ab765a950ff1 to your computer and use it in GitHub Desktop.
<div ここにmask-imageプロパティを動的に着脱するとチラつきが発生する></div>
<style>
div{
mask-image:hoge; /* mask-imageプロパティは固定で記述しておき、*/
mask-size: calc(infinity + 1vmax) /* 巨大なmask-sizeを初期状態にするなどで回避する*/
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment