SVG animate实现呼吸闪烁效果
来源:互联网 发布:淘宝关键词二维码生成 编辑:程序博客网 时间:2024/04/28 07:08
<!DOCTYPE><html> <head> <title>呼吸效果测试</title> <meta content="width=device-width;initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script> <style type="text/css"> </style></head> <body> <div id="map_canvas"> <svg id="svgBack" version="1.1" width="400" height="400"style="border:1px solid #000" preserveAspectRatio="xMinYMin meet" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 400"> </svg></div> <script type="text/javascript"> $(function(){ var currentX=200; var currentY=200;var html = "<circle cx='"+currentX+"' cy='"+currentY+"' r='5' stroke='blue' stroke-width='0' fill='blue'> "+"<animate id='ani1' attributeName='fill-opacity' attributeType='XML' begin='0s;ani2.end' dur='2s' from='1' to='0.4' fill='freeze'/>"+"<animate id='ani2' attributeName='fill-opacity' attributeType='XML' begin='ani1.end' dur='2s' from='0.4' to='1' fill='freeze'/>"+"</circle>";$("#svgBack").html(html); }); </script> </body></html>
阅读全文
0 0
- SVG animate实现呼吸闪烁效果
- Jquery animate实现效果
- svg animate实现加载中的动画
- jquery animate实现动画效果
- SVG实现攻击效果
- 实现文字闪烁效果
- UE4实现闪烁效果
- js实现闪烁效果
- 通过ValueAnimator实现呼吸灯效果
- Android呼吸灯效果两种实现
- 安卓 呼吸灯效果--代码实现
- jquey animate 实现切换图片效果
- SVG实现边框动画效果
- 实现霓虹灯闪烁效果(UI)
- CSS3实现闪烁动画效果
- timer实现的呼吸灯效果——初步
- 高仿google now效果的呼吸按钮简单实现
- 呼吸灯 效果
- AJAX工作原理及其优缺点
- 使用 logrotate对centos中各服务程序的日志文件进行转储
- 嵌入式linux+ARM 11
- JetBrains IDEA 系列产品通用xx方法(license server)
- eclipse maven 导出项目依赖的jar包
- SVG animate实现呼吸闪烁效果
- WCF net.tcp 消息推送
- 聚类算法——最大最小距离算法
- 嵌入式linux+ARM 12
- 网络安全实验室-基础-3
- 多线程技术: 两个线程交替打印奇数和偶数
- LeetCode 283. Move Zeroes (数组元素操作)
- spring
- spring中InitializingBean接口使用理解