栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 游戏开发 > Cocos2d-x

六个拿来就能用的有趣网页特效

Cocos2d-x 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

上学期写大作业时收集的一些拿来直接用的网页特效,我还用服务器生成了 script 链接,只需一条标签就可以使用啦,如果你觉得这样会影响网站加载速度,没关系,你可以将其下载下来使用

文章目录
  • 1. 看板娘
  • 2. 鼠标点击出现自定义文字
  • 3. 樱花飘落特效
  • 4. 小猫返回顶部
  • 5. 可爱登录
  • 6. 点击爆炸


1. 看板娘

效果预览


代码




    
    
    
    看板娘


    
    
    
    



2. 鼠标点击出现自定义文字

效果预览

引入jquery


引入js

 

代码




    
    
    
    Document
    
    


    

3. 樱花飘落特效

效果预览

代码





    
    
    
    樱花特效



    




4. 小猫返回顶部

效果预览

代码

源码下载





    
    
    
    返回顶部
    



    

5. 可爱登录

效果预览

在线访问

点击这里


文件目录

图片素材

素材
素材

html





    
    
    
    掘金登录小案例
    
    
    
    
    
    



    

手机登录

其他登录方式

>注册登录即表示同意 用户协议,隐私政策


css

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #aaabab;
}
#app{
    position: relative;
    height: 290px;
    width: 350px;
    background-color: #fff;
}
#app form{
    position: relative;
    padding: 20px;
}
#app form h2{
    color: #333333;
    font-size: 18px;
    user-select: none;
}
#app form p input{
    width: 100%;
    height: 38px;
    color: #828282;
    border: 1px solid #ddd;
    padding-left: 8px;
    margin-top: 18px;
    border-radius: 2px;
    outline: none;
}
#app form p:nth-of-type(3) input{
    background-color: #007fff;
    color: #edf6ff;
}
#app form a{
    text-decoration: none;
    color: #198fff;
    margin: 10px 0;
    display: inline-block;
    font-size: 15px;
}
#app form p span{
    margin-top: 10px;
    font-size: 14px;
    color: #847f7a;
}
#app form p span small{
    font-size: 14px;
    color: #198fff;
}
button{
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}
button::after{
    font-family: "bootstrap-icons";
    content: 'F62A';
    font-size: 24px;
    color: #afafaf;
}
#app img{
    position: absolute;
    width: 100px;
    
    left: 50%;
    transform: translateX(-50%);
    display: none;
}
#app img:nth-of-type(1){
    top: -64px;
}
#app img:nth-of-type(2){
    top: -62px;
}

6. 点击爆炸

效果预览

引入




转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/896904.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号