diff --git a/src/components/AI/index.vue b/src/components/AI/index.vue
index edcc65f..f03f7b1 100644
--- a/src/components/AI/index.vue
+++ b/src/components/AI/index.vue
@@ -9,7 +9,7 @@
gradientUnits="objectBoundingBox"
>
-
+
@@ -55,6 +55,14 @@ export default defineComponent({
onMounted(() => {
gradient = document.getElementById("radial-gradient");
+
+ // anime({
+ // targets: gradient,
+ // cy: "1.3",
+ // loop: true,
+ // direction: "alternate",
+ // easing: "easeInOutCirc",
+ // });
});
function convertBlock(buffer) {
@@ -99,13 +107,37 @@ export default defineComponent({
watch(think, (think, prevThink) => {
if (think) {
- console.log("think");
+ aiOffset.value = 0.7;
+ anime({
+ targets: gradient,
+ cy: "0.7",
+ complete: function () {
+ anime({
+ targets: gradient,
+ cy: "1.3",
+ loop: true,
+ direction: "alternate",
+ easing: "easeInOutCirc",
+ });
+ },
+ // loop: true,
+ // direction: "alternate",
+ // easing: "easeInOutCirc",
+ });
} else {
- console.log("dont think");
+ aiOffset.value = 1;
+ anime({
+ targets: gradient,
+ cy: "1",
+ loop: false,
+ easing: "easeInOutCirc",
+ offset: "-=100",
+ });
}
});
return {
radius,
+ aiOffset,
};
},
});