Memasang Kode Canvas Particle
Login ke akun blog klik tombol blog baru, buat satubuah link baru
kemudian beri nama sesuai fungsi, klik Edit HTML pada link baru tersebut,
hapus semua kode template ganti dengan kode blank template, yang tersedia pada sumber berikut : Get Blank Template. edit background warna sesuai keinginan klik simpan selesai.
Login ke akun blog klik tombol blog baru, buat satubuah link baru
kemudian beri nama sesuai fungsi, klik Edit HTML pada link baru tersebut,
hapus semua kode template ganti dengan kode blank template, yang tersedia pada sumber berikut : Get Blank Template. edit background warna sesuai keinginan klik simpan selesai.
Kemudian klik entri halaman baru HTML pada link
tersebut.
copy kode dibawah ini, pastekan kedalam halaman baru tersebut dan klik simpan selesai
copy kode dibawah ini, pastekan kedalam halaman baru tersebut dan klik simpan selesai
<style class="Mys2010-styles"> body {);color:red;height:100%;overflow:hidden;} header { -o-transition-duration: 0.3s; -moz-transition-duration: 0.3s; -webkit-transition-duration: 0.3s; transition-duration: 0.3s; padding: 0px 0; position: fixed; top: -11px; width: 100%; text-align: center; font-size: 6px; background: #dad, #660099,#dad,#222,#B20000,#222,#dad ); } .ap { position: fixed; right: 0; bottom: 0; left: 0; height: 50px; margin: auto; font-family: Arial, sans-serif; font-size: 10px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; text-align: center; font-size: 11px; background: #dad; border-top: 2px solid #008E00; z-index: 9999; } h2 { padding: 15px; background: linear-gradient(270deg, #dad,#222, #B20000, #222, #dad, #660099,#dad,#222,#B20000,#222,#dad ); border-bottom: 3px solid #f00; } #M-2010, #teks, #posisi, #dibawah { position: absolute; font-size: 11px; margin: 2px } #M-2010, #teks div { text-decoration: underline; cursor: pointer } #teks, #posisi { text-align: right; right: 50px; } #teks, #dibawah { text-align: left; left: 50px; } #dibawah, #posisi { bottom: 12px; } body { background: linear-gradient(270deg, #660099,#660099,#660099,#660099, #660099, #660099, #660099, #660099, #222, #FE80DF, #222, #990099,#990099 , #990099, #24006B,#660099, #660099, #660099,#660099, #660099, #660099, #660099, #660099, #660099, #660099,#660099 , #660099, #660099, #660099, #660099, #660099, #24006B,#990099 , #990099, #990099, #222, #FE80DF, #222,#660099,#660099,#660099,#660099, #660099,#660099,#660099,#660099); } body::before { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-image: linear-gradient(bottom, rgba(255,255,255,.3) 26%, rgb(188,52,255) 63%, rgba( 0, 0, 0, 0.8 ) 91%); background-image: -o-linear-gradient(bottom, rgba(255,255,255,.3) 26%, rgb(188,52,255) 63%, rgba( 0, 0, 0, 0.8 ) 91%); background-image: -moz-linear-gradient(bottom, rgba(255,255,255,.3) 26%, rgb(188,52,255) 63%, rgba( 0, 0, 0, 0.8 ) 91%); background-image: -webkit-linear-gradient(bottom, rgba(255,255,255,.3) 26%, rgb(188,52,255) 63%, rgba( 0, 0, 0, 0.8 ) 91%); background-image: -ms-linear-gradient(bottom, rgba(255,255,255,.3) 26%, rgb(188,52,255) 63%, rgba( 0, 0, 0, 0.8 ) 91%); -webkit-animation: overlay infinite 12s; animation: overlay infinite 12s; content: ''; } @-webkit-keyframes transform { 0%, 16% { opacity: 0; -webkit-transform: translateY(-50%) rotateX(-90deg); transform: translateY(-50%) rotateX(-90deg); } 18% { opacity: 1; } 40% { opacity: 1; -webkit-transform: translateY(-50%) rotateX(0deg); transform: translateY(-50%) rotateX(0deg); } } @keyframes transform { 0%, 16% { opacity: 0; -webkit-transform: translateY(-50%) rotateX(-90deg); transform: translateY(-50%) rotateX(-90deg); } 18% { opacity: 1; } 40% { opacity: 1; -webkit-transform: translateY(-50%) rotateX(0deg); transform: translateY(-50%) rotateX(0deg); } } @-webkit-keyframes overlay { 0% { opacity: .5; } 18%, 81% { opacity: 0; } 92%, 100% { opacity: .5; } } @keyframes overlay { 0% { opacity: .5; } 18%, 81% { opacity: 0; } 92%, 100% { opacity: .5; } } @-webkit-keyframes opacity { 0%, 4% { opacity: 0; } 18%, 81% { opacity: 1; } 92%, 100% { opacity: 0; } } @keyframes opacity { 0%, 4% { opacity: 0; } 18%, 81% { opacity: 1; } 92%, 100% { opacity: 0; } }
.shadow-top:after { content: " "; box-shadow: 0 0 200px 80px #FFF; } .shadow-top:before { content: " "; box-shadow: 0 0 200px 250px #0033CC; } #M2010-shadow { margin:-70px; box-shadow: 0 0 150px 80px #FF0000; } .shadow1:before,.shadow1:after { z-index:-1; position:absolute; content: " "; bottom:25px; left:10px; width:50%; max-width:110px; box-shadow: 0 0 200px 90px #FFFF00; -webkit-transform:rotate(-8deg); -moz-transform:rotate(-8deg); -o-transform:rotate(-8deg); -ms-transform:rotate(-8deg); transform:rotate(-8deg); } .shadow1:after { -webkit-transform:rotate(8deg); -moz-transform:rotate(8deg); -o-transform:rotate(8deg); -ms-transform:rotate(8deg); transform:rotate(8deg); right:10px; left:auto; } /*end*/ .loader { position: absolute; top: 0; bottom:78px; left:630px; margin: auto; width: 90px; height:90px; } .loader { border-color: #bd313b transparent; border-style: solid; border-width:8px; border-radius: 50%; transform: rotate(1deg); animation: spin 100ms linear infinite, color 200ms linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes color { 0% { border-color: #bd313b transparent; } 25% { border-color: #6d31bd transparent; } 50% { border-color: #31bdb3 transparent; } 75% { border-color: #81bd31 transparent; } 100% { border-color: #bd313b transparent; } }
li{ position: absolute; left: 50%; top: 45%; display: block; background: transparent; border: 0px solid rgba(23,246,251, 1.0); border-left-color: transparent; border-right-color: transparent; border-radius: 500px; transition: all 0.5s ease; } li:last-child { position: absolute; left: 50%; top: 50%; z-index: 20; width: 200px; height: 100px; margin-left: -110px; margin-top: -110px; padding: 70px 0px 30px; background-color: rgba(8,8,8,1.0); border: 10px solid rgba(8,8,8,1.0); border-radius: 200px; text-shadow: 2px 2px 0px rgba(0,0,0,1); box-shadow: 0px 0px 30px rgba(23,246,251, 0.5); animation: pulseShadow 5s infinite linear; } li:last-child:after{ content:''; border: 3px dotted rgba(22,42,43,1.0); border-radius: 200px; width: 200px; height: 200px; display: block; position: absolute; top:-3px; left:-3px; background-color: transparent; box-shadow: inset 0px 0px 30px rgba(0,0,0,1.0); } li:first-child{ margin-left: -130px; margin-top: -130px; z-index: 2; width: 240px; height: 240px; border-width: 10px; animation: spinBG 5s infinite linear; } li:nth-child(2){ margin-left: -137px; margin-top: -137px; z-index: 1; width: 270px; height: 270px; border-width: 2px; border-style: dotted; box-shadow: 0px 0px 20px rgba(23,246,251, .5); animation: spinBG2 2s infinite linear; } li:nth-child(3){ margin-left: -150px; margin-top: -150px; z-index: 1; width: 296px; height: 296px; border-width: 2px; box-shadow: inset 0px 0px 25px rgba(23,246,251, .25); animation: spinBG 12s infinite linear; } li:nth-child(4){ margin-left: -170px; margin-top: -170px; z-index: 1; width: 330px; height: 330px; border-width: 5px; border-style: solid; box-shadow: inset 0px 0px 25px rgba(23,246,251,1.0); animation: spinBG3 8s infinite linear; } /*------------------------------------------- Animations -------------------------------------------*/ @keyframes pulseGlow{ 0% {text-shadow: 0px 0px 20px rgba(23,246,251, 0.75);} 50% {text-shadow: 0px 0px 40px rgba(23,246,251, 0.5); } 100%{text-shadow: 0px 0px 20px rgba(23,246,251, 0.75);} } @keyframes pulseShadow{ 0% {box-shadow: 0px 0px 30px rgba(23,246,251, 0.25);} 50% {box-shadow: 0px 0px 30px rgba(23,246,251, 0.75);} 100%{box-shadow: 0px 0px 30px rgba(23,246,251, 0.25);} } @keyframes spinBG{ 0% {transform: rotate(0deg);} 100%{transform: rotate(360deg);} } @keyframes spinBG2{ 0%{ transform: rotate(360deg); box-shadow: 0px 0px 1px rgba(23,246,251, 0.5); } 50%{ transform: rotate(180deg); box-shadow: 0px 0px 20px rgba(23,246,251, 0.5); } 100%{ transform: rotate(0deg); box-shadow: 0px 0px 1px rgba(23,246,251, 0.5); } } @keyframes spinBG3{ 0%{ transform: rotate(180deg); box-shadow: 0px 0px 1px rgba(23,246,251, 0.1); } 50%{ transform: rotate(0deg); } 100%{ transform: rotate(-180deg); } }
/*Share Animations*/ .container { position: fixed; bottom: 1em; right: 1em; } /*1-bottom up 50px*/ .menu-toggle { width: 50px; height:50px; border-radius: 50%; background-color: #990099; box-shadow: 4px 4px 2px 1px rgba(0, 0, 0, 0.2); position: absolute; z-index: 5; bottom: 46px; right:1px; display: table; text-align: center; } .menu-toggle .fa { color: #24006B; font-size: 2em; display: table-cell; vertical-align: middle; -webkit-transition: 0.4s; transition: 0.4s; } .menu-toggle.open .fa { -webkit-transform: rotate(135deg); transform: rotate(135deg); } .btn-app { width: 2.5em; height: 2.5em; border-radius: 50%; position: absolute; background-color: #4644fd; color: #fff; text-align: center; } .btn-app .fa { line-height: 2.5em; } .open .btn-app { box-shadow: 4px 4px 2px 1px rgba(0, 0, 0, 0.2); } /*2- bottom up 50px*/ .menu-round { position: absolute; bottom: 50px; right: 0; z-index: 3; } .menu-round .btn-app { bottom: 0.25em; right: 0.25em; -webkit-transition: 0.4s; transition: 0.4s; } .menu-round.open .btn-app:nth-of-type(1) { right: 0.5em; bottom: 4.25em; -webkit-transition-delay: 0.2s; transition-delay: 0.2s; } .menu-round.open .btn-app:nth-of-type(2) { right: 3.5em; bottom: 3.5em; -webkit-transition-delay: 0.1s; transition-delay: 0.1s; } .menu-round.open .btn-app:nth-of-type(3) { right: 4.25em; bottom: 0.5em; } /*3- bottom up icon 20px*/ .menu-line { position: absolute; bottom: 50px; z-index: 2; } /*4- bottom up 50px*/ .menu-line .btn-app { bottom: 50px; right: 0.5em; -webkit-transition: 0.3s; transition: 0.3s; -webkit-transition-delay: 0.5s; transition-delay: 0.5s; } .menu-line.open .btn-app:nth-of-type(1) { bottom: 50px; } .menu-line.open .btn-app:nth-of-type(1) { bottom: 7.25em; } .menu-line.open .btn-app:nth-of-type(2) { bottom: 10.25em; } .menu-line.open .btn-app:nth-of-type(3) { bottom: 13.25em; } .menu-line.open .btn-app:nth-of-type(4) { bottom: 16.25em; } .menu-line.open .btn-app:nth-of-type(5) { bottom: 19.25em; } .menu-line.open .btn-app:nth-of-type(6) { bottom: 22.25em; } .menu-line.open .btn-app:nth-of-type(7) { bottom: 25.25em; }
.M2010 { color: #f00; text-shadow: 0 1px 0 #eee, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);} </style>
<div class="container"> <div class="menu-toggle"> <span class="fa fa-superscript"></span> </div> <div class="menu-round"> <div class="btn-app"> <a id="hover" class="text" href="https://twitter.com/myscript2010s"target="_blank" title="Twitter"><i class="fa fa-twitter"></i></a> </div> <div class="btn-app"> <a id="hover" class="text" href="https://www.facebook.com/learn.editing.myscript2010"target="_blank" title="Facebook"><i class="fa fa-facebook"></i></a> </div> <div class="btn-app"> <a id="hover" class="text" href="https://plus.google.com/u/0/101254379497511200564/posts"target="_blank" title="G-Plus"><i class="fa fa-google-plus"></i></a> </div> </div> <div class="menu-line"> <div class="btn-app"> <a id="hover" class="text" href="http://codepen.io/Myscript2010"target="_blank" title="Codepen"><i class="fa fa-codepen"></i></a> </div> <div class="btn-app"> <a id="hover" class="text" href="https://id.pinterest.com/myscript2010"target="_blank" title="Pinterest"><i class="fa fa-pinterest"></i></a> </div> <div class="btn-app"> <a id="hover" class="text" href="#"target="_blank" title="Github"><i class="fa fa-github" aria-hidden="true"></i> </i></a> </div> <div class="btn-app"> <a id="hover" class="text" href="https://www.linkedin.com"target="_blank" title="Linkedin"><i class="fa fa-linkedin"></i></a> </div> <div class="btn-app"> <a id="hover" class="text" href="https://www.youtube.com/user/myscript2010s"target="_blank" title="Youtube"><i class="fa fa-youtube"></i></a> </div> <div class="btn-app"> <a id="hover" class="text" href="https://dribbble.com/Myscript2010s"target="_blank" title="Dribbble"><i class="fa fa-dribbble"></i></a> </div> <div class="btn-app"> <a id="hover" class="text" href="http://demoshow-mys2010.blogspot.co.id/p/contact-us-music.html"target="_blank" title="Email"><i class="fa fa-envelope"></i></a> </div> </div> </div>
<ul> <li></li> <li></li> <li></li> <li></li> <li></li> <div class="shadow1"> </div> <div id="M2010-shadow"> </div> <div align="center"> <div class="shadow-top"> </div> <div class="loader"> </div>
<header> <a href="http://sample-mys2010.blogspot.co.id/2016/08/canvas-particle.html" target="_blank" title="Mari Belajar"> <h2> <span style="color:orange; font-size: 10pt">LET'S STUDY</a> </h2> </a> </div> </header> </div> </div> <h3 class="M2010"> <div align="center" style="margin-top:500px"> <font size="5" color="#222"face="arial">M-2010 CIBEBER CIMAHI</h3> </div> </div> <div align="center" style="margin-top:-493px"> <canvas id="can" width="600" height="600"></canvas> <div class="ap" id="ap"> <div align="center"> <div id="dibawah"> <span style="font-family: arial ; font-size: 12px; color:#80C8FE;"> EDITED BY. <a href="https://Link Download"title="Mari Belajar"><span style="color: #FFFF00; font-size: 14px;"> M - 2010 </a> DOWNLOAD </a> </div> <div id="posisi"> <span style="font-family: arial ; font-size: 12px; color:#80C8FE;"> COPYRIGHT <a href="http://codepen.io/Myscript2010" target="_blank" title="Mari Belajar"><span style="color: #FFFF00; font-size: 14px;"> © - 2016 </a> CODEPEN </a> </div><h2><audio id="mys2010" src="https://sites.google.com/site/safe50534/lagu/Amos-Lee-Violin-M2010s.mp3"controls="controls"></audio></h2> </a></div> </div>
<share animations> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> <link rel='stylesheet prefetch' href='//codepen.io/assets/reset/normalize.css'> <script src='//assets.codepen.io/assets/common/stopExecutionOnTimeout-53beeb1a007ec32040abaf4c9385ebfc.js'></script> <music> <ul class="mys2010-list"> <script src='//assets.codepen.io/assets/common/stopExecutionOnTimeout.js?t=1'> </script> <script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'> </script> <link rel='stylesheet prefetch' href='http://cdn.jsdelivr.net/mediaelement/2.13.1/mediaelementplayer.min.css'> <script src='http://cdn.jsdelivr.net/mediaelement/2.13.1/mediaelement-and-player.min.js'> </script> <script src="//assets.codepen.io/assets/common/stopExecutionOnTimeout-f961f59a28ef4fd551736b43f94620b5.js"></script>
<script> $(function () { $('video,audio').mediaelementplayer({ success: function (mediaElement, domObject) { var audio_src = $('li.current').attr('data-url'); mediaElement.setSrc(audio_src); mediaElement.addEventListener('ended', function (e) { mys2010PlayNext(e.target); }, false); }, keyActions: [] }); $('.mys2010-list li').click(function () { $(this).addClass('current').siblings().removeClass('current'); var audio_src = $(this).attr('data-url'); $('audio#mys2010:first').each(function () { this.player.pause(); this.player.setSrc(audio_src); this.player.play(); }); }); }); function mys2010PlayNext(currentPlayer) { if ($('.mys2010-list li.current').length > 0) { var current_item = $('.mys2010-list li.current:first'); var audio_src = $(current_item).next().text(); $(current_item).next().addClass('current').siblings().removeClass('current'); console.log('if ' + audio_src); } else { var current_item = $('.mys2010-list li:first'); var audio_src = $(current_item).next().text(); $(current_item).next().addClass('current').siblings().removeClass('current'); console.log('elseif ' + audio_src); } if ($(current_item).is(':last-child')) { $(current_item).removeClass('current'); } else { currentPlayer.setSrc(audio_src); currentPlayer.play(); }} </script>
<script> var canvas = document.getElementById("can"); var can = canvas.getContext("2d"); var x = canvas.width / 2; var y = canvas.height / 2; var radius = getRandomArbitrary(0, 15); var speedX = getRandomArbitrary(-15, 15); var speedY = getRandomArbitrary(-15, 15); var points = []; var point = null; function draw() { point = { x: x, speedX: getRandomArbitrary(-15, 15), y: y, speedY: getRandomArbitrary(-15, 15), radius: radius }; points.push(point); can.clearRect(0, 0, canvas.width, canvas.height); for (var i = 0; i < points.length; i++) { if (points[i].x > 600 || points[i].y > 600 || points[i].x < -600 || points[i].y < -600) { points.splice(i, 1); } can.beginPath(); can.arc(points[i].x, points[i].y, points[i].radius, 0, 2 * Math.PI, false); can.lineWidth = 2; can.strokeStyle = 'rgb(188,52,255)'; can.stroke(); points[i].x += points[i].speedX; points[i].y += points[i].speedY; points[i].radius = points[i].radius * 0.99; } } setInterval(draw, 50); function getRandomArbitrary(min, max) { return Math.random() * (max - min) + min; } </script> <script>$('.menu-toggle').click(function () { $('.menu-toggle').toggleClass('open'); $('.menu-round').toggleClass('open'); $('.menu-line').toggleClass('open'); }); </script>
Design Code is Edited by.
Mys2010 on Codepen
If you want to directly copy and paste you canDownload Here Canvas Particle Audio