Guest User

Untitled

a guest
Dec 11th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. import React from 'react'
  2. //import Particles from 'react-particles-js'
  3. import Layout from '../components/layout'
  4. import { Link } from 'gatsby'
  5. import styles from './style.css'
  6. import Particles from '../components/ParticlesDiv'
  7. import Container from '../components/container'
  8.  
  9.  
  10. export default () => (
  11. <>
  12. <Particles
  13. style={styles}
  14. params={{
  15. particles:{
  16.  
  17. number: {
  18. value: 70,
  19. density: {
  20. enable: true,
  21. value_area: 1000
  22.  
  23. }
  24.  
  25.  
  26. },
  27. shape: {
  28. type: "circle",
  29. stroke: {
  30. width: 2,
  31. color: "#fff"
  32. },
  33. polygon: {
  34. nb_sides: 7
  35. },
  36. image: {
  37. src: "img/github.svg",
  38. width: 100,
  39. height: 100
  40. }
  41. },
  42. opacity: {
  43. value: 1,
  44. random: false,
  45. anim: {
  46. enable: false,
  47. speed: 3,
  48. opacity_min: 0.1,
  49. sync: false
  50. }
  51. },
  52. size: {
  53. value: 3,
  54. random: true,
  55. anim: {
  56. enable: false,
  57. speed: 40,
  58. size_min: 0.1,
  59. sync: false
  60. }
  61. },
  62. line_linked: {
  63. enable: true,
  64. distance: 250,
  65. color: "fff",
  66. opacity: 0.4,
  67. width: 1
  68. },
  69. move: {
  70. enable: true,
  71. speed: 6,
  72. direction: "none",
  73. random: false,
  74. straight: false,
  75. out_mode: "out",
  76. bounce: false,
  77. attract: {
  78. enable: false,
  79. rotateX: 600,
  80. rotateY: 1200
  81. }
  82.  
  83. }
  84. },
  85. interactivity: {
  86. detect_on: "canvas",
  87. events: {
  88. onhover: {
  89. enable: true,
  90. mode: "grab"
  91. },
  92. onclick: {
  93. enable: true,
  94. mode: "push"
  95.  
  96. },
  97. resize: true
  98. },
  99. modes: {
  100. grab: {
  101. distance: 140,
  102. line_linked: {
  103. opacity: 1
  104. }
  105. },
  106. bubble: {
  107. distance: 300,
  108. size: 70,
  109. duration: 2,
  110. opacity: 8,
  111. speed: 3
  112. },
  113. repulse: {
  114. distance: 500,
  115. duration: 0.4
  116. },
  117. push: {
  118. particles_nb: 4
  119. },
  120. remove: {
  121. particles_nb: 5
  122. }
  123. }
  124. },
  125. retina_detect: true
  126. }}
  127. />
  128. <Container>
  129. style={'{"width": "100px"}'}
  130. </Container>
  131. </>
  132. )
Add Comment
Please, Sign In to add comment