Skip to content

Commit

Permalink
doc morphBlur effect added to main page
Browse files Browse the repository at this point in the history
  • Loading branch information
rrd108 committed Aug 3, 2024
1 parent 00c4a4c commit 57d5921
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { defineConfig } from 'vitepress'
export default defineConfig({
title: 'Vue Mess Detector',
description: 'A static code analysis tool for detecting code smells and best practice violations in **Vue** and **Nuxt** projects.',
head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
head: [['link', { rel: 'icon', href: '/favicon.ico' }], ['link', { rel: 'stylesheet', href: '/styles.css' }]],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
search: {
Expand Down
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ features:
details: 20+ rules supported
---

<span id="morphBlur"></span>

<Contributors />

70 changes: 70 additions & 0 deletions docs/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#morphBlur {
display: inline-block;
background-color: #8a25b1;
height: 12em;
aspect-ratio: 1;
position: fixed;
top: 3em;
left: 10%;
z-index: -1;
animation: move 12s ease-in-out infinite alternate;
filter: blur(6em);
}

@keyframes move {
50% {
top: 12em;
left: 60%;
}

100% {
top: 20em;
left: 25%;
}
}

#morphBlur::before,
#morphBlur::after {
content: '';
display: block;
position: absolute;
height: 100%;
width: 100%;
background-color: inherit;
}

#morphBlur::before {
top: -12em;
right: 9em;
animation: moveBefore 5s ease-in-out forwards infinite alternate;
}

@keyframes moveBefore {
35% {
top: 12em;
right: 12em;
}

100% {
top: 3em;
right: 3em;
}
}

#morphBlur::after {
bottom: -4em;
left: 19em;
animation: moveAfter 8s ease-in-out forwards infinite alternate;
}

@keyframes moveAfter {
30% {
bottom: 12em;
left: 0em;
}

100% {
bottom: 0em;
left: 22em;
}
}

0 comments on commit 57d5921

Please sign in to comment.