您好,登錄后才能下訂單哦!
這篇文章主要介紹了HTML5怎么實現七夕情人節表白效果的相關知識,內容詳細易懂,操作簡單快捷,具有一定借鑒價值,相信大家閱讀完這篇HTML5怎么實現七夕情人節表白效果文章都會有所收獲,下面我們一起來看看吧。
<!-- * @Author: your name * @Date: 2021-06-11 11:16:48 * @LastEditTime: 2021-08-06 14:30:34 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \06\index.html --> <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta /> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" /> <link type="text/css" rel="stylesheet" href="static/css/style.css" /> <link type="text/css" rel="stylesheet" href="static/css/style1.css" /> <link type="text/css" rel="stylesheet" href="static/css/animate.min.css" /> <link type="text/css" rel="stylesheet" href="static/css/audioAutoPlay.css" /> <script src="static/js/jquery.min.js"></script> <script src="static/js/three.js"></script> <script src="static/js/tween.min.js"></script> <script src="static/js/trackballcontrols.js"></script> <script src="static/js/css3drenderer.js"></script> <title>七夕告白網頁</title> </head> <body> <!-- 背景S --> <!-- <audio controls autoplay> <source src="mp3/520.mp3"> </audio> --> <div style="position:fixed;width: 100%;height:100%;top:0; z-index:-1;"> <div id="background" class="wall"></div> <div id="midground" class="wall"></div> <div id="foreground" class="wall"></div> <div id="top" class="wall"></div> </div> <!-- 背景E --> <!-- 音樂 --> <img id="music_ico" onclick="clickMusic()" src="static/image/music_ico.png" alt="" /> <audio id="audio" style="display:" src="mp3/bg_music.mp3" preload="auto" loop="loop" ></audio> <div id="container"></div> <!-- 操作按鈕-默認已經隱藏- 需要打開可以 查找#menu 類名 刪掉 opacity: 0;即可--> <div id="menu"> <button id="table">照片墻</button> <button id="sphere">照片球</button> <button id="helix">螺旋照片</button> <button id="grid">整齊排列</button> </div> <!-- 卡片 --> <div class="show_info animated" style="display:"> <div class="info_my"> <img id="showImg" style="width: 50px; height:" src="./static/image/2.jpg" /> <div class="info_mem"> <div class="nickname"></div> <div class="id">七夕節是一個十分浪漫的節日,相傳牛郎織女每年農歷七月七日會在鵲橋上相會</div> <div class="vote">520</div> </div> </div> <div class="intro">風箏有風,海豚有海,你還有我 ????</div> </div> </body> <script type="text/javascript" src="static/js/functions.js"></script> <script type="text/javascript" src="static/js/audioAutoPlay.js"></script> </html>
#music_ico { position: absolute; top: 10px; right: 10px; float: right; cursor: pointer; z-index: 999; } .music_run { animation: myrun 5s linear infinite; -webkit-animation: myrun 5s linear infinite; /*Safari and Chrome*/ } @keyframes { from { transform: rotate(0deg); -ms-transform: rotate(0deg); /* Internet Explorer */ -moz-transform: rotate(0deg); /* Firefox */ -webkit-transform: rotate(0deg); /* Safari 和 Chrome */ -o-transform: rotate(0deg); /* Opera */ } to { transform: rotate(360deg); -ms-transform: rotate(360deg); /* Internet Explorer */ -moz-transform: rotate(360deg); /* Firefox */ -webkit-transform: rotate(360deg); /* Safari 和 Chrome */ -o-transform: rotate(360deg); /* Opera */ } } @-webkit-keyframes myrun /*Safari and Chrome*/ { from { transform: rotate(0deg); -ms-transform: rotate(0deg); /* Internet Explorer */ -moz-transform: rotate(0deg); /* Firefox */ -webkit-transform: rotate(0deg); /* Safari 和 Chrome */ -o-transform: rotate(0deg); /* Opera */ } to { transform: rotate(360deg); -ms-transform: rotate(360deg); /* Internet Explorer */ -moz-transform: rotate(360deg); /* Firefox */ -webkit-transform: rotate(360deg); /* Safari 和 Chrome */ -o-transform: rotate(360deg); /* Opera */ } }
關于“HTML5怎么實現七夕情人節表白效果”這篇文章的內容就介紹到這里,感謝各位的閱讀!相信大家對“HTML5怎么實現七夕情人節表白效果”知識都有一定的了解,大家如果還想學習更多知識,歡迎關注億速云行業資訊頻道。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。