yangyangrenren 2013-10-23 13:30 采纳率: 25%
浏览 1970
已采纳

http://www.cheersmug.com/网站上文字的特效是怎样制作的?

http://www.cheersmug.com/网站上 OUR MUGSCUSTOMIZE MUGSABOUT US 文字的特效是怎样制作的?还有,最好这个也可以在 php 界面中实现效果。我学的不深,请教教我。

  • 写回答

1条回答 默认 最新

  • Jerome_Song 2013-11-28 03:50
    关注

    使用jquery做的动画,绑定mouseenter和mouseout事件即可,你再调整一下样式就能得到那个效果了

    <html>
    <head>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script> 
    $(document).ready(function(){
      $("#area").bind("mouseenter",function(){
        var div=$("div");
        div.animate({height:'200px',width:'200px'},"fast");
      });
    $("#area").bind("mouseout",function(){
        var div=$("div");
        div.animate({height:'180px',width:'180px'},"fast");
     });
    });
    </script> 
    </head>
    
    <body>
    <div id="area" style="background:#98bf21;height:180px;width:180px;position:absolute;text-align:center;vertical-align:middle-center">
     <a  href="/product_category.html" style="width:180px;height:180px;text-align:center">OUR MUGS</a>
    </div>
    </body>
    </html>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序