<template> <div class="effect-container" @mousemove.prevent="applyEffect"> <div class="effect-indicator" :style="{ top: effectY-10 + 'px', left: effectX-10 + 'px' }"></div> {{effectX}} {{effectY}} </div></template><script setup lang="ts">import { ref } from 'vue';</script><style scoped>.effect-container { position: relative; width: 100%; height: 100vh;}.effect-indicator { border-radius: 50%; width:10px; height: 10px; box-shadow: 0 1px 20px 0 red; position: absolute; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }.effect-container:hover .effect-indicator { opacity: 1;}</style>