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

jquery+css动画效果

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

jquery+css动画效果

1.html页面




    
    
    
    
    
    




    时间轴
    旋转
    恢复
    漫游
    动画
    收起
    系统
    灌溉
    摄像头






 2.css----bottom.css

.web-bottom {
    width: 100vw;
    height: 64.8px;
}
.web-bottom .countyBox{
    width: 7vw;
    height: 50px;
    line-height: 50px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}
.countyBox .iconfont{
    color: #0066ff;
}
.countyBox .vertical{
    width: 1px;
    height: 30px;
    margin-top: 10px;
    background: #0066ff;
    margin-left: 1vw;
}

.dock-item2 {
    display: block;
    width: 30px;
    margin-right: 12px;
    color: #ffffff;
    position: relative;
    bottom: 0px;
    cursor: pointer;
    transition: all 0.3s;
}

.dock-item2 span {
    color: #ffffff;
    display: none;
    position: absolute;
    top: -19px;
    left: 12px;
    width: 36px;
    font-size: 12px;
}

.dock-item2 img {
    border: none;
    margin: 5px 10px 0px;
    width: 100%;
}
.active1{
    margin-bottom: 8px;
    margin-right: 20px;
    margin-left: 10px;
    font-size: 12px;
}
.activeImg1{
    transform: scale(1.7);
}
.activeImg2{
    transform: scale(1.2);
}
.active2{
    margin-bottom: 4px;
}

3.js---bottom.js

$('#bottomTools').on('mouseover','.dock-item2',function () {
        $(this).find('span').css('display','block');
        $(this).siblings().find('span').css('display','none');
        $(this).find('img').removeClass('activeImg1').removeClass('activeImg2')
        $(this).siblings().find('img').removeClass('activeImg1').removeClass('activeImg2')
        $(this).find('img').addClass('activeImg1')
        $(this).next(".dock-item2").find('img').addClass('activeImg2')
        $(this).prev(".dock-item2").find('img').addClass('activeImg2')

        $(this).removeClass('active1').removeClass('active2')
        $(this).siblings().removeClass('active1').removeClass('active2')
        $(this).addClass('active1')
        $(this).next(".dock-item2").addClass('active2')
        $(this).prev(".dock-item2").addClass('active2')
    })
    $('#bottomTools').on('mouseout','.dock-item2',function () {
        $(this).find('span').css('display','none');
        $(this).find('img').removeClass('activeImg1').removeClass('activeImg2')
        $(this).next().find('img').removeClass('activeImg1').removeClass('activeImg2')
        $(this).prev().find('img').removeClass('activeImg1').removeClass('activeImg2')

        $(this).removeClass('active1').removeClass('active2')
        $(this).next().removeClass('active1').removeClass('active2')
        $(this).prev().removeClass('active1').removeClass('active2')
    })
    $('#bottomTools').on('click','.dock-item2',function () {
        var _btnId = $(this).data('href')
        if(_btnId == 'timeLine'){
            
        }
        else if(_btnId == 'rotate'){//旋转-暂停
          
        }
        else if(_btnId == 'recovery'){//恢复初始视角
          
           
           
        }
        else if(_btnId == 'roam'){//漫游
           
        }
        else if(_btnId == 'animation'){
           
        }
        else if(_btnId == 'stow'){
            
        }
        else if(_btnId == 'system'){
           
        }
        else if(_btnId == 'irrigation'){
            
        }
        else if(_btnId == 'camera'){
            
        }
    })

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

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

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