Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/snippets/ui/effects/2/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Waves
title: Circle Effect
titleTemplate: Snippet Collection | massCode
author: antonreshetov
author: naijamesz
---

# {{ $frontmatter.title }}
Expand Down
45 changes: 45 additions & 0 deletions docs/snippets/ui/effects/3/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: Circle Effect
titleTemplate: Snippet Collection | massCode
author: naijamesz
---

# {{ $frontmatter.title }}

Author: <AppLink :href="`https://github.com/${$frontmatter.author}`">@{{$frontmatter.author}}</AppLink>

## Result

<CodePreview
:css="css"
:html="html"
:isDark="$frontmatter.isDark"
:isGray="$frontmatter.isGray"
/>

## CSS

<ClientOnly>
<CodeEditor
lang="css"
v-model="css"
/>
</ClientOnly>

## HTML

<ClientOnly>
<CodeEditor
lang="htmlmixed"
v-model="html"
/>
</ClientOnly>

<script setup>
import htmlRaw from './markup.html?raw'
import cssRaw from './styles.css?raw'
import { ref } from 'vue'

const css = ref(cssRaw)
const html = ref(htmlRaw)
</script>
18 changes: 18 additions & 0 deletions docs/snippets/ui/effects/3/markup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div class="cristalBall">
<div class="cristal">
<div class="ball">
<div class="name">
<h1>Circle BG Effect</h1>
</div>
</div>
</div>
</div>
<div class="background">
<div class="circle">
<div class="circle1">
<div class="circle2">
<div class="circle3"></div>
</div>
</div>
</div>
</div>
141 changes: 141 additions & 0 deletions docs/snippets/ui/effects/3/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
body {
overflow: hidden;
}

.name {
text-align: center;
font-size: 37px;
position: relative;
font-family: 'Exo', sans-serif;
color: #ffffff;
text-shadow: 0 0 10px rgba(10, 195, 255, 0.9), 0 0 20px rgba(10, 195, 255, 0.9), 0 0 30px rgba(10, 195, 255, 0.9), 0 0 40px rgba(10, 195, 255, 0.9), 0 0 50px rgba(10, 195, 255, 0.9);
}

.cristalBall {
width: 100%;
margin: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 99999;
}

.background {
background-color: white;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}

.circle {
background-color: #ffffff;
height: 1300px;
border-radius: 50%;
width: 1300px;
margin: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.circle1 {
background-color: rgba(100, 215, 255, 0.2);
height: 1000px;
border-radius: 50%;
width: 1000px;
margin: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation: pulse3 10s linear infinite;
}

.circle2 {
background-color: rgba(100, 205, 255, 0.35);
height: 700px;
border-radius: 50%;
width: 700px;
margin: auto;
position: absolute;
top: 50%;
left: 50%;
color: white;
font-size: 40px;
transform: translate(-50%, -50%);
animation: pulse 4s linear infinite;
}

.circle3 {
background-color: rgba(100, 195, 255, 0.7);
height: 500px;
border-radius: 50%;
width: 500px;
margin: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 50px;
animation: pulse2 3s linear infinite;
}

.star {
transform: translate(350px, 50px);
opacity: 0.6;
}

@keyframes pulse {
0% {
width: 700px;
height: 700px;
}

50% {
width: 750px;
height: 750px;
}

100% {
width: 700px;
height: 700px;
}
}

@keyframes pulse2 {
0% {
width: 500px;
height: 500px;
}

50% {
width: 550px;
height: 550px;
}

100% {
width: 500px;
height: 500px;
}
}

@keyframes pulse3 {
0% {
width: 1000px;
height: 1000px;
}

50% {
width: 1050px;
height: 1050px;
}

100% {
width: 1000px;
height: 1000px;
}
}
Loading