INNER CODE UNIT · JavaScript

addHighlight

moshang-ax/lottery · product/src/lottery/index.js:362

function addHighlight() {
  document.querySelectorAll(".lightitem").forEach(node => {
    node.classList.add("highlight");
  });
}

/**
 * 渲染地球等
 */
function transform(targets, duration) {
  // TWEEN.removeAll();
  for (var i = 0; i < threeDCards.length; i++) {
    var object = threeDCards[i];
    var target = targets[i];

    new TWEEN.Tween(object.position)
      .to(
        {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…