easyaudioeffects实现html音频声音特效代码

代码语言:html

所属分类:多媒体

代码描述:easyaudioeffects实现html音频声音特效代码

代码标签: 音频 声音 特效

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>BFW NEW PAGE</title>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.easyaudioeffects.js"></script>
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
    <style>
        body {
            padding: 100px;

        }


        .sound-trigger--type-default.sound-trigger {
            display: inline-block;
            width: 100px;
            height: 100px;
            position: relative;
            margin: 10px;
            -webkit-border-radius: 100px;
            -moz-border-radius: 100px;
            -ms-border-radius: 100px;
            -o-border-radius: 100px;
            border-radius: 100px;
        }
        .sound-trigger--type-default.sound-trigger:after {
            -webkit-transition: all .3s ease;
            -moz-transition: all .3s ease;
            -ms-transition: all .3s ease;
            -o-transition: all .3s ease;
            transition: all .3s ease;
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            z-index: 48;
            width: 100%;
            height: 100%;
            background-color: rgba(105, 103, 202, 0.2);
            -webkit-border-radius: 100px;
            -moz-border-radius: 100px;
            -ms-border-radius: 100px;
            -o-border-radius: 100px;
            border-radius: 100px;
        }
        .sound-trigger--type-default.sound-trigger--type-hover:hover:after {
            -webkit-transform: scale(1.25);
            -moz-transform: scale(1.25);
            -ms-transform: scale(1.25);
            -o-transform: scale(1.25);
            transform: scale(1.25);
        }
        .sound-trigger--type-default.sound-trigger--type-hover .sound-trigger__inner:hover {
            -webkit-transform: scale(0.9);
            -moz-transform: scale(0.9);
            -ms-transform: scale(0.9);
            -o-transform: scale(0.9);
            transform: scale(0.9);
            background-color: rgba(105, 103, 202, 0.5);
            vertical-align: middle;
        }
        .sound-trigger--type-default.sound-trigger--type-hover .sound-trigger__inner:hover i {
            text-shadow: none;
        }
        .sound-trigger--type-default.sound-trigger--type-hover .sound-trigger__inner:hover img {
            vertical-align: middle;
        }
        .sound-trigger--type-default.sound-trigger--type-hover .sound-trigger__speach {
            -webkit-animation: motion__hover 2s ease 0s infinite alternate;
            -moz-animation: motion__hover 2s ease 0s infinite alternate;
            -ms-animation: motion__hover 2s ease 0s infinite alternate;
            -o-animation: motion__hover 2s ease 0s infinite alternate;
            animation: motion__hover 2s ease 0s infinite alternate;
        }
        .sound-trigger--type-default.sound-trigger--type-click:active:after {
            -webkit-transform: scale(1.25);
            -moz-transform: scale(1.25);
            -ms-transform: scale(1.25);
            -o-transform: scale(1.25);
            transform: scale(1.25);
        }
        .sound-trigger--type-default.sound-trigger--type-click .sound-trigger__inner:active {
            -webkit-transform: scale(0.9);
            -moz-transform: scale(0.9);
            -ms-transform: scale(0.9);
            -o-transform: scale(0.9);
            transform: scale(0.9);
            background-color: rgba(105, 103, 202, 0.5);
        }
        .sound-trigger--type-default.sound-trigger--type-click .sound-trigger__inner:active i {
            text-shadow: none;
        }
        .sound-trigger--type-default.sound-trigger--type-click .sound-trigger__speach {
            -webkit-animation: motion__click 1s ease 0s infinite;
            -moz-animation: motion__click 1s ease 0s infinite;
            -ms-animation: motion__click 1s ease 0s infinite;
            -o-animation: motion__click 1s ease 0s infinite;
            animation: motion__click 1s ease 0s infinite;
        }
        .sound-trigger--type-default .sound-trigger__inner {
            width: 100%;
            height: 100%;
            overflow: hidden;
            text-align: center;
            -webkit-border-radius: 100px;
            -moz-border-radius: 100px;
            -ms-border-radius: 100px;
            -o-border-radius: 100px;
            border-radius: 100px;
            -webkit-transition: all .3s ease;
            -moz-transition: all .3s ease;
            -ms-transition: all .3s ease;
            -o-transition: all .3s ease;
            transition: all .3s ease;
            background-color: #6967ca;
            color: #ececf5;
            cursor: pointer;
            position: relative;
            z-index: 50;
        }
        .sound-trigger--type-default .sound-trigger__inner i {
            font-size: 40px;
            line-height: 100px;
            -webkit-transition: all .1s ease;
            -moz-transition: all .1s ease;
            -ms-transition: all .1s ease;
            -o-transition: all .1s ease;
            transition: all .1s ease;
            text-shadow: 0px 0px 0 #625fc7,1px 1px 0 #625fc7,2px 2px 0 #625fc7,3px 3px 0 #625fc7,4px 4px 0 #625fc7,5px 5px 0 #625fc7,6px 6px 0 #625fc7,7px 7px 0 #625fc7,8px 8px 0 #625fc7,9px 9px 0 #625fc7,10px 10px 0 #625fc7,11px 11px 0 #625fc7,12px 12px 0 #625fc7,13px 13px 0 #625fc7,14px 14px 0 #625fc7,15px 15px 0 #625fc7,16px 16px 0 #625fc7,17px 17px 0 #625fc7,18px 18px 0 #625fc7,19px 19px 0 #625fc7,20px 20px 0.........完整代码请登录后点击上方下载按钮下载查看

网友评论0