Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- @font-face {
- font-family:'heart';
- src: url(https://dl.dropbox.com/s/3obmncth4fhmduq/HEARRG__.TTF);
- }
- @font-face {
- src: url(https://dl.dropbox.com/s/1479f8x52y3z5u4/rainyhearts.ttf);
- font-family: hearts;
- }
- @font-face {
- font-family: emoji;
- src: url(https://dl.dropbox.com/s/cvba4kh6qm23mru/EmojiFont.ttf);
- }
- </style>
- <style>
- .ani {
- -webkit-animation: scale-up-ver-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
- animation: scale-up-ver-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
- }
- /* ----------------------------------------------
- * Generated by Animista on 2022-5-24 22:0:0
- * Licensed under FreeBSD License.
- * See http://animista.net/license for more info.
- * w: http://animista.net, t: @cssanimista
- * ---------------------------------------------- */
- /**
- * ----------------------------------------
- * animation scale-up-ver-center
- * ----------------------------------------
- */
- @-webkit-keyframes scale-up-ver-center {
- 0% {
- -webkit-transform: scaleY(0.4);
- transform: scaleY(0.4);
- }
- 100% {
- -webkit-transform: scaleY(1);
- transform: scaleY(1);
- }
- }
- @keyframes scale-up-ver-center {
- 0% {
- -webkit-transform: scaleY(0.4);
- transform: scaleY(0.4);
- }
- 100% {
- -webkit-transform: scaleY(1);
- transform: scaleY(1);
- }
- }
- </style>
- <script>
- // Mouseover/ Click sound effect- by JavaScript Kit (www.javascriptkit.com)
- // Visit JavaScript Kit at http://www.javascriptkit.com/ for full source code
- //** Usage: Instantiate script by calling: var uniquevar=createsoundbite("soundfile1", "fallbackfile2", "fallebacksound3", etc)
- //** Call: uniquevar.playclip() to play sound
- var html5_audiotypes={ //define list of audio file extensions and their associated audio types. Add to it if your specified audio file isn't on this list:
- "mp3": "audio/mpeg",
- "mp4": "audio/mp4",
- "ogg": "audio/ogg",
- "wav": "audio/wav"
- }
- function createsoundbite(sound){
- var html5audio=document.createElement('audio')
- if (html5audio.canPlayType){ //check support for HTML5 audio
- for (var i=0; i<arguments.length; i++){
- var sourceel=document.createElement('source')
- sourceel.setAttribute('src', arguments[i])
- if (arguments[i].match(/\.(\w+)$/i))
- sourceel.setAttribute('type', html5_audiotypes[RegExp.$1])
- html5audio.appendChild(sourceel)
- }
- html5audio.load()
- html5audio.playclip=function(){
- html5audio.pause()
- html5audio.currentTime=0
- html5audio.play()
- }
- return html5audio
- }
- else{
- return {playclip:function(){throw new Error("Your browser doesn't support HTML5 audio unfortunately")}}
- }
- }
- //Initialize two sound clips with 1 fallback file each:
- var mouseoversound=createsoundbite("https://drive.google.com/uc?export=download&id=1IHVDIesQOo7PKfxN_EsLnAaoNiNRlo7N")
- var clicksound=createsoundbite("https://drive.google.com/uc?export=download&id=1IHVDIesQOo7PKfxN_EsLnAaoNiNRlo7N")
- </script>
Add Comment
Please, Sign In to add comment