Skip to content

Commit 2ede83e

Browse files
author
yongyuanzhiqizhi
committed
首页折线效果测试
1 parent 181f0a7 commit 2ede83e

File tree

7 files changed

+613
-2
lines changed

7 files changed

+613
-2
lines changed
17.8 KB
Binary file not shown.

Src/GoodGayFriend/GGF/GGF.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,10 @@
921921
<Content Include="Theme\Images\works\img4.jpg" />
922922
<Content Include="Theme\Images\works\img5.jpg" />
923923
<Content Include="Theme\Images\works\img6.jpg" />
924+
<Content Include="Theme\Js\app.js" />
924925
<Content Include="Theme\Js\Index.js" />
926+
<Content Include="Theme\Js\particles.js" />
927+
<Content Include="Theme\Js\particles.min.js" />
925928
<Content Include="Theme\Js\ProjectList.js" />
926929
<Content Include="Theme\Js\Shared.js" />
927930
<Content Include="Web.config" />

Src/GoodGayFriend/GGF/Theme/Js/app.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/* default dom id (particles-js) */
2+
//particlesJS();
3+
4+
/* config dom id */
5+
//particlesJS('dom-id');
6+
7+
/* config dom id (optional) + config particles params */
8+
particlesJS('particles-js', {
9+
particles: {
10+
color: '#fff',
11+
shape: 'circle', // "circle", "edge" or "triangle"
12+
opacity: 1,
13+
size: 4,
14+
size_random: true,
15+
nb: 150,
16+
line_linked: {
17+
enable_auto: true,
18+
distance: 100,
19+
color: '#000',
20+
opacity: 1,
21+
width: 1,
22+
condensed_mode: {
23+
enable: false,
24+
rotateX: 600,
25+
rotateY: 600
26+
}
27+
},
28+
anim: {
29+
enable: true,
30+
speed: 1
31+
}
32+
},
33+
interactivity: {
34+
enable: true,
35+
mouse: {
36+
distance: 200
37+
},
38+
detect_on: 'canvas', // "canvas" or "window"
39+
mode: 'grab',
40+
line_linked: {
41+
opacity: .5
42+
},
43+
events: {
44+
onclick: {
45+
enable: true,
46+
mode: 'push', // "push" or "remove"
47+
nb: 4
48+
}
49+
}
50+
},
51+
/* Retina Display Support */
52+
retina_detect: true
53+
});
54+
$("#particles-js").css({ "position": "absolute", "top": "480px" });

0 commit comments

Comments
 (0)