Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
67679249
Commit
67679249
authored
Jul 26, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish particle
parent
8e9597e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
1 deletion
+106
-1
src/ui/Start/index.module.scss
src/ui/Start/index.module.scss
+99
-1
src/ui/Start/index.tsx
src/ui/Start/index.tsx
+7
-0
No files found.
src/ui/Start/index.module.scss
View file @
67679249
body
{
body
{
background
:
#0
00
;
background
:
#0
f131e
;
text-align
:
center
;
text-align
:
center
;
position
:
relative
;
position
:
relative
;
margin
:
0
;
margin
:
0
;
...
@@ -80,3 +80,101 @@ body * {
...
@@ -80,3 +80,101 @@ body * {
.neos-header
button
:hover
{
.neos-header
button
:hover
{
text-shadow
:
0
0
0
.5em
#2137bd
,
0
0
0
.5em
#2137bd
;
text-shadow
:
0
0
0
.5em
#2137bd
,
0
0
0
.5em
#2137bd
;
}
}
.particles-container
{
width
:
100%
;
height
:
100%
;
position
:
relative
;
}
.particle-container
{
$particleNum
:
200
;
$particleColor
:
hsl
(
180
,
100%
,
80%
);
position
:
absolute
;
transform
:
translateY
(
-10vh
);
animation-iteration-count
:
infinite
;
animation-timing-function
:
linear
;
.particle
{
width
:
100%
;
height
:
100%
;
border-radius
:
50%
;
mix-blend-mode
:
screen
;
background-image
:
radial-gradient
(
hsl
(
180
,
100%
,
80%
)
,
hsl
(
180
,
100%
,
80%
)
10%
,
hsla
(
180
,
100%
,
80%
,
0
)
56%
);
animation
:
fadein-frames
200ms
infinite
,
scale-frames
2s
infinite
;
}
@keyframes
fadein-frames
{
0
%
{
opacity
:
1
;
}
50
%
{
opacity
:
0
.7
;
}
100
%
{
opacity
:
1
;
}
}
@keyframes
scale-frames
{
0
%
{
transform
:
scale3d
(
0
.4
,
0
.4
,
1
);
}
50
%
{
transform
:
scale3d
(
2
.2
,
2
.2
,
1
);
}
100
%
{
transform
:
scale3d
(
0
.4
,
0
.4
,
1
);
}
}
$particleBaseSize
:
10
;
@for
$i
from
1
to
$particleNum
{
&
:nth-child
(
#{
$i
}
)
{
$particleSize
:
random
(
$particleBaseSize
);
width
:
$particleSize
+
px
;
height
:
$particleSize
+
px
;
$startPositionY
:
random
(
10
)
+
80
;
$framesName
:
"move-frames"
+
$i
;
$moveDuration
:
28000
+
random
(
9000
)
+
ms
;
animation-name
:
#{
$framesName
}
;
animation-duration
:
$moveDuration
;
animation-delay
:
random
(
37000
)
+
ms
;
@keyframes
#{
$framesName
}
{
from
{
transform
:
translate3d
(
#{
random
(
100
)
+
vw
}
,
#{
$startPositionY
+
vh
}
,
0
);
}
to
{
transform
:
translate3d
(
#{
random
(
100
)
+
vw
}
,
#{
-
$startPositionY
-
random
(
30
)
+
vh
}
,
0
);
}
}
.particle
{
animation-delay
:
random
(
4000
)
+
ms
;
}
}
}
}
src/ui/Start/index.tsx
View file @
67679249
...
@@ -21,6 +21,13 @@ const Start: React.FC = () => {
...
@@ -21,6 +21,13 @@ const Start: React.FC = () => {
</
a
>
</
a
>
</
div
>
</
div
>
<
div
className=
{
styles
.
wrapper
}
>
<
div
className=
{
styles
.
wrapper
}
>
<
div
className=
{
styles
[
"
particles-container
"
]
}
>
{
Array
.
from
({
length
:
100
}).
map
((
_
)
=>
(
<
div
className=
{
styles
[
"
particle-container
"
]
}
>
<
div
className=
{
styles
[
"
particle
"
]
}
/>
</
div
>
))
}
</
div
>
<
div
role=
"banner"
className=
{
styles
[
"
neos-header
"
]
}
>
<
div
role=
"banner"
className=
{
styles
[
"
neos-header
"
]
}
>
<
div
>
<
div
>
<
h1
>
<
h1
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment