selector {
    will-chnage: /* value */
}

caniuse.comで詳しい情報をご確認ください。

  .box {
    width: 100px;
    height: 100px;
    background-color: red;
    transition: transform 0.3s;
  }
  .box:hover {
    will-change: transform;
    transform: scale(1.2);
  }
.box {
    width: 100px;
    height: 100px;
    background-color: red;
    transition: transform 0.3s;
}
.box.optimized {
    transform: scale(1.2);
}
<div class="box"></div>
 // ページ読み込み後に最適化クラスを追加
 window.addEventListener('load', () => {
    const box = document.querySelector('.box');
    box.classList.add('optimized');
 });
// 例えば、クリック時にアニメーションを適用する要素を取得します。
var el = document.getElementById('element');

// 要素にマウスを乗せたときに <code>will-change</code> プロパティを設定します。
el.addEventListener('mouseenter', hintBrowser);
el.addEventListener('animationEnd', removeHint);

function hintBrowser() {
	// アニメーションの keyframes ブロック内で変更される可能性があり、最適化が可能なプロパティ一覧
	this.style.willChange = 'transform, opacity';
}

function removeHint() {
    // will-changeプロパティの設定値を初期値に戻して解除します
	this.style.willChange = 'auto';
}