aboutsummaryrefslogtreecommitdiff
path: root/packages/memory-graph/src/styles/animations.css.ts
diff options
context:
space:
mode:
authornexxeln <[email protected]>2025-11-19 18:57:55 +0000
committernexxeln <[email protected]>2025-11-19 18:57:56 +0000
commit5e24eb66c3ca7d2224d0d1f7837cda17015f5fcb (patch)
tree60336fd37b41e3597065729d098877483eba73b6 /packages/memory-graph/src/styles/animations.css.ts
parentFix: Prevent multiple prompts while AI response is generated (fixes #538) (#583) (diff)
downloadsupermemory-5e24eb66c3ca7d2224d0d1f7837cda17015f5fcb.tar.xz
supermemory-5e24eb66c3ca7d2224d0d1f7837cda17015f5fcb.zip
includes: - a package that contains a MemoryGraph component which handles fetching data and rendering the graph - a playground to test the package problems: - the bundle size is huge - the styles are kinda broken? we are using [https://www.npmjs.com/package/vite-plugin-libgi-inject-css](https://www.npmjs.com/package/vite-plugin-lib-inject-css) to inject the styles ![image.png](https://app.graphite.com/user-attachments/assets/cb1822c5-850a-45a2-9bfa-72b73436659f.png)
Diffstat (limited to 'packages/memory-graph/src/styles/animations.css.ts')
-rw-r--r--packages/memory-graph/src/styles/animations.css.ts116
1 files changed, 116 insertions, 0 deletions
diff --git a/packages/memory-graph/src/styles/animations.css.ts b/packages/memory-graph/src/styles/animations.css.ts
new file mode 100644
index 00000000..d9430ec4
--- /dev/null
+++ b/packages/memory-graph/src/styles/animations.css.ts
@@ -0,0 +1,116 @@
+import { keyframes } from "@vanilla-extract/css";
+
+/**
+ * Animation keyframes
+ * Used throughout the component library for consistent motion
+ */
+
+export const fadeIn = keyframes({
+ from: { opacity: 0 },
+ to: { opacity: 1 },
+});
+
+export const fadeOut = keyframes({
+ from: { opacity: 1 },
+ to: { opacity: 0 },
+});
+
+export const slideInFromRight = keyframes({
+ from: {
+ transform: "translateX(100%)",
+ opacity: 0,
+ },
+ to: {
+ transform: "translateX(0)",
+ opacity: 1,
+ },
+});
+
+export const slideInFromLeft = keyframes({
+ from: {
+ transform: "translateX(-100%)",
+ opacity: 0,
+ },
+ to: {
+ transform: "translateX(0)",
+ opacity: 1,
+ },
+});
+
+export const slideInFromTop = keyframes({
+ from: {
+ transform: "translateY(-100%)",
+ opacity: 0,
+ },
+ to: {
+ transform: "translateY(0)",
+ opacity: 1,
+ },
+});
+
+export const slideInFromBottom = keyframes({
+ from: {
+ transform: "translateY(100%)",
+ opacity: 0,
+ },
+ to: {
+ transform: "translateY(0)",
+ opacity: 1,
+ },
+});
+
+export const spin = keyframes({
+ from: { transform: "rotate(0deg)" },
+ to: { transform: "rotate(360deg)" },
+});
+
+export const pulse = keyframes({
+ "0%, 100%": {
+ opacity: 1,
+ },
+ "50%": {
+ opacity: 0.5,
+ },
+});
+
+export const bounce = keyframes({
+ "0%, 100%": {
+ transform: "translateY(-25%)",
+ animationTimingFunction: "cubic-bezier(0.8, 0, 1, 1)",
+ },
+ "50%": {
+ transform: "translateY(0)",
+ animationTimingFunction: "cubic-bezier(0, 0, 0.2, 1)",
+ },
+});
+
+export const scaleIn = keyframes({
+ from: {
+ transform: "scale(0.95)",
+ opacity: 0,
+ },
+ to: {
+ transform: "scale(1)",
+ opacity: 1,
+ },
+});
+
+export const scaleOut = keyframes({
+ from: {
+ transform: "scale(1)",
+ opacity: 1,
+ },
+ to: {
+ transform: "scale(0.95)",
+ opacity: 0,
+ },
+});
+
+export const shimmer = keyframes({
+ "0%": {
+ backgroundPosition: "-1000px 0",
+ },
+ "100%": {
+ backgroundPosition: "1000px 0",
+ },
+});