Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
org
website
Commits
e719fa44
Verified
Commit
e719fa44
authored
Feb 11, 2021
by
hotwater
Browse files
add particles.js library
parent
dbac7531
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
config.toml
View file @
e719fa44
...
...
@@ -21,6 +21,8 @@ link = "plugins/magnific-popup/magnific-popup.css"
link
=
"plugins/slick/slick.css"
[[params.plugins.css]]
link
=
"plugins/fonts/fonts.css"
[[params.plugins.css]]
link
=
"plugins/particles/particles.css"
# js plugins
[[params.plugins.js]]
...
...
@@ -35,6 +37,10 @@ link = "plugins/shuffle/shuffle.min.js"
link
=
"plugins/magnific-popup/jquery.magnific-popup.min.js"
[[params.plugins.js]]
link
=
"plugins/lazy-load/lozad.min.js"
[[params.plugins.js]]
link
=
"plugins/particles/particles.min.js"
[[params.plugins.js]]
link
=
"plugins/particles/init.min.js"
############################# Navigation ##################################
...
...
layouts/index.html
View file @
e719fa44
{{ define "main" }}
{{ partial "banner.html" . }}
<div
id=
"particles-js"
>
</div>
{{ partial "
navigation
.html" . }}
{{ partial "
banner
.html" . }}
{{ partial "goals.html" . }}
{{ partial "navigation.html" . }}
{{ partial "goals.html" . }}
{{ partial "community.html" . }}
{{ partial "community.html" . }}
{{ end }}
static/plugins/particles/init.min.js
0 → 100644
View file @
e719fa44
particlesJS
.
load
(
'
particles-js
'
,
'
plugins/particles/particles.json
'
,
()
=>
console
.
log
(
'
particles loaded
'
))
static/plugins/particles/particles.css
0 → 100644
View file @
e719fa44
#particles-js
{
position
:
fixed
;
width
:
100%
;
height
:
100%
;
top
:
0
;
}
static/plugins/particles/particles.json
0 → 100644
View file @
e719fa44
{
"particles"
:
{
"number"
:
{
"value"
:
80
,
"density"
:
{
"enable"
:
true
,
"value_area"
:
800
}
},
"color"
:
{
"value"
:
"#ffffff"
},
"shape"
:
{
"type"
:
"circle"
,
"stroke"
:
{
"width"
:
0
,
"color"
:
"#000000"
},
"polygon"
:
{
"nb_sides"
:
5
},
"image"
:
{
"src"
:
"img/github.svg"
,
"width"
:
100
,
"height"
:
100
}
},
"opacity"
:
{
"value"
:
0.5
,
"random"
:
false
,
"anim"
:
{
"enable"
:
false
,
"speed"
:
1
,
"opacity_min"
:
0.1
,
"sync"
:
false
}
},
"size"
:
{
"value"
:
0
,
"random"
:
true
,
"anim"
:
{
"enable"
:
false
,
"speed"
:
40
,
"size_min"
:
0.1
,
"sync"
:
false
}
},
"line_linked"
:
{
"enable"
:
true
,
"distance"
:
150
,
"color"
:
"#57cbcc"
,
"opacity"
:
0.4
,
"width"
:
1
},
"move"
:
{
"enable"
:
true
,
"speed"
:
2
,
"direction"
:
"none"
,
"random"
:
true
,
"straight"
:
false
,
"out_mode"
:
"out"
,
"bounce"
:
false
,
"attract"
:
{
"enable"
:
true
,
"rotateX"
:
600
,
"rotateY"
:
1200
}
}
},
"interactivity"
:
{
"detect_on"
:
"canvas"
,
"events"
:
{
"onhover"
:
{
"enable"
:
false
,
"mode"
:
"repulse"
},
"onclick"
:
{
"enable"
:
false
,
"mode"
:
"push"
},
"resize"
:
true
},
"modes"
:
{
"grab"
:
{
"distance"
:
400
,
"line_linked"
:
{
"opacity"
:
1
}
},
"bubble"
:
{
"distance"
:
400
,
"size"
:
40
,
"duration"
:
2
,
"opacity"
:
8
,
"speed"
:
3
},
"repulse"
:
{
"distance"
:
60
,
"duration"
:
0.4
},
"push"
:
{
"particles_nb"
:
0
},
"remove"
:
{
"particles_nb"
:
2
}
}
},
"retina_detect"
:
true
}
static/plugins/particles/particles.min.js
0 → 100644
View file @
e719fa44
This diff is collapsed.
Click to expand it.
static/plugins/particles/partictles.htb.json
0 → 100644
View file @
e719fa44
{
"particles"
:
{
"number"
:
{
"value"
:
100
,
"density"
:
{
"enable"
:
true
,
"value_area"
:
800
}
},
"color"
:
{
"value"
:
"#57cbcc"
},
"shape"
:
{
"type"
:
"circle"
,
"stroke"
:
{
"width"
:
0
,
"color"
:
"#000000"
},
"polygon"
:
{
"nb_sides"
:
5
},
"image"
:
{
"src"
:
"img/github.svg"
,
"width"
:
100
,
"height"
:
100
}
},
"opacity"
:
{
"value"
:
0.5
,
"random"
:
false
,
"anim"
:
{
"enable"
:
false
,
"speed"
:
0.5
,
"opacity_min"
:
0.1
,
"sync"
:
false
}
},
"size"
:
{
"value"
:
1
,
"random"
:
true
,
"anim"
:
{
"enable"
:
false
,
"speed"
:
40
,
"size_min"
:
0.1
,
"sync"
:
false
}
},
"line_linked"
:
{
"enable"
:
true
,
"distance"
:
150
,
"color"
:
"#57cbcc"
,
"opacity"
:
0.4
,
"width"
:
1
},
"move"
:
{
"enable"
:
true
,
"speed"
:
3
,
"direction"
:
"right"
,
"random"
:
false
,
"straight"
:
false
,
"out_mode"
:
"out"
,
"bounce"
:
false
,
"attract"
:
{
"enable"
:
false
,
"rotateX"
:
600
,
"rotateY"
:
1200
}
}
},
"interactivity"
:
{
"detect_on"
:
"canvas"
,
"events"
:
{
"onhover"
:
{
"enable"
:
true
,
"mode"
:
"repulse"
},
"onclick"
:
{
"enable"
:
true
,
"mode"
:
"push"
},
"resize"
:
true
},
"modes"
:
{
"grab"
:
{
"distance"
:
10
,
"line_linked"
:
{
"opacity"
:
1
}
},
"bubble"
:
{
"distance"
:
10
,
"size"
:
40
,
"duration"
:
2
,
"opacity"
:
8
,
"speed"
:
3
},
"repulse"
:
{
"distance"
:
100
,
"duration"
:
0.4
},
"push"
:
{
"particles_nb"
:
4
},
"remove"
:
{
"particles_nb"
:
2
}
}
},
"retina_detect"
:
true
}
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