(Prettify) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
<style> | <style> | ||
− | canvas { | + | canvas { |
− | + | display: block; | |
− | + | vertical-align: bottom; | |
− | } | + | } |
− | /* ---- particles.js container ---- */ | + | /* ---- particles.js container ---- */ |
− | #particles-js { | + | |
− | + | #particles-js { | |
− | + | position: absolute; | |
− | + | height: 400px; | |
− | + | z-index: -1; | |
− | + | background-color: #181630; | |
− | + | background-image: url("https://static.igem.org/mediawiki/2018/5/5f/T--UCopenhagen--v1-iGEM-Copenhagen-square-white.png"); | |
− | + | background-repeat: no-repeat; | |
− | } | + | background-size: 60%; |
+ | background-position: 50% 50%; | ||
+ | } | ||
+ | |||
+ | |||
+ | @media only screen and (max-width: 1000px) { | ||
+ | #particles-js { | ||
+ | position: absolute; | ||
+ | height: 400px; | ||
+ | margin-top: 47px; | ||
+ | z-index: -1; | ||
+ | background-color: #181630; | ||
+ | background-image: url("https://static.igem.org/mediawiki/2018/5/58/T--UCopenhagen--v1-Logo-text-black.png"); | ||
+ | background-repeat: no-repeat; | ||
+ | background-size: 70%; | ||
+ | background-position: 50% 50%; | ||
+ | } | ||
+ | } | ||
</style> | </style> | ||
<!-- particles.js container --> | <!-- particles.js container --> | ||
− | <div class="igem_2018_team_content pageContent" | + | <div class="igem_2018_team_content pageContent" id="particles-js"> |
− | + | ||
− | + | ||
</div> | </div> | ||
Line 34: | Line 49: | ||
<script> | <script> | ||
− | particlesJS("particles-js", { | + | particlesJS("particles-js", { |
− | + | particles: { | |
− | + | number: { | |
− | + | value: 150, | |
− | + | density: { | |
− | + | enable: true, | |
− | + | value_area: 800 | |
− | + | } | |
− | + | }, | |
− | + | color: { | |
− | + | value: "#ffffff" | |
− | + | }, | |
− | + | shape: { | |
− | + | type: "circle", | |
− | + | stroke: { | |
− | + | width: 0, | |
− | + | color: "#000000" | |
− | + | }, | |
− | + | polygon: { | |
− | + | nb_sides: 5 | |
− | + | }, | |
− | + | image: { | |
− | + | src: "", | |
− | + | width: 100, | |
− | + | height: 100 | |
− | + | } | |
− | + | }, | |
− | + | opacity: { | |
− | + | value: 0.4, | |
− | + | random: true, | |
− | + | anim: { | |
− | + | enable: false, | |
− | + | speed: 1, | |
− | + | opacity_min: 0.1, | |
− | + | sync: false | |
− | + | } | |
− | + | }, | |
− | + | size: { | |
− | + | value: 3, | |
− | + | random: true, | |
− | + | anim: { | |
− | + | enable: false, | |
− | + | speed: 40, | |
− | + | size_min: 0.1, | |
− | + | sync: false | |
− | + | } | |
− | + | }, | |
− | + | line_linked: { | |
− | + | enable: false, | |
− | + | distance: 150, | |
− | + | color: "#ffffff", | |
− | + | opacity: 0.4, | |
− | + | width: 1 | |
− | + | }, | |
− | }); | + | move: { |
− | + | enable: true, | |
+ | speed: 0.5, | ||
+ | direction: "top-right", | ||
+ | random: false, | ||
+ | straight: true, | ||
+ | out_mode: "out", | ||
+ | bounce: false, | ||
+ | attract: { | ||
+ | enable: false, | ||
+ | rotateX: 600, | ||
+ | rotateY: 1200 | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | interactivity: { | ||
+ | detect_on: "window", | ||
+ | events: { | ||
+ | onhover: { | ||
+ | enable: true, | ||
+ | mode: "bubble" | ||
+ | }, | ||
+ | onclick: { | ||
+ | enable: true, | ||
+ | mode: "repulse" | ||
+ | }, | ||
+ | resize: true | ||
+ | }, | ||
+ | modes: { | ||
+ | grab: { | ||
+ | distance: 400, | ||
+ | line_linked: { | ||
+ | opacity: 0 | ||
+ | } | ||
+ | }, | ||
+ | bubble: { | ||
+ | distance: 300, | ||
+ | size: 0, | ||
+ | duration: 2, | ||
+ | opacity: 8, | ||
+ | speed: 3 | ||
+ | }, | ||
+ | repulse: { | ||
+ | distance: 200, | ||
+ | duration: 0.4 | ||
+ | }, | ||
+ | push: { | ||
+ | particles_nb: 4 | ||
+ | }, | ||
+ | remove: { | ||
+ | particles_nb: 2 | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | retina_detect: true | ||
+ | }); | ||
</script> | </script> | ||
Latest revision as of 11:13, 12 August 2018