您当前的位置: 首页 > 

知其黑、受其白

暂无认证

  • 0浏览

    0关注

    1250博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

红心点赞效果的实现

知其黑、受其白 发布时间:2022-04-11 18:58:26 ,浏览量:0

在这里插入图片描述

DOCTYPE html>


    
    Document


    span{color:#999;}
    p{color:#D00;}
    .heart{
        animation: test 1s linear 1;
        filter:drop-shadow(0px 0px 4px rgb(192,192,192));
    }
    .heart1{
        animation: test 1s linear 1;
        filter:drop-shadow(0px 0px 4px rgb(255,20,20));
    }
    @keyframes test{
        0%{
            transform: scale(0.8,0.8);
            opacity: 0.8;
        }
        100%{
            transform: scale(1,1);
            opacity: 1.0;
        }
    }


    
        ♥♥
    
    
        ♥♥
    

    
        
            ♥
        
        
            ♥
        
    

    
        document.getElementById("heart").addEventListener("click", function()
        {
            document.getElementById("heart1").style.display = "block";
            this.style.display = "none";
        });
        document.getElementById("heart1").addEventListener("click", function()
        {
            document.getElementById("heart").style.display = "block";
            this.style.display = "none";
        });
    




关注
打赏
1665558895
查看更多评论
立即登录/注册

微信扫码登录

0.8657s