css动画
来源:互联网 发布:excel表函数数据分类 编辑:程序博客网 时间:2024/06/10 02:38
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script src="js/jquery-3.2.1.min.js"type="text/javascript"charset="utf-8"></script> <!-- 1.4.1 显示与隐藏 normal slow fast 1.4.2 淡入淡出 1.4.3 自定义动画------《 animate $("#block").animate({ width: "90%", height: "100%", fontSize: "10em", borderWidth: 10 }, 1000 ); 1.4.4 动画停止与延时 stop([cle],[jum])1.7* delay(duration,[queueName]) --> </head> <body> <img src="img/a1.jpg"id="img0"style="position: relative;"/> <input type="button" id="show" value="显示" /> <input type="button" id="hide" value="隐藏" /> <hr /> <input type="button" id="dr" value="淡入" /> <input type="button" id="dc" value="淡出" /><BR> <input type="button" id="zdy" value="自定义动画" /> <script type="text/javascript"> $("#show").click(function(){ $("#img0").show(3000); }); $("#hide").click(function(){ $("#img0").hide(3000); }); //------------------- $("#dr").click(function(){ $("#img0").fadeIn(2000); }); $("#dc").click(function(){ $("#img0").fadeOut(2000); }); //----------------------- $("#zdy").click(function(){ $("#img0").animate({ left: "90%", }, 1000 ); }); </script> </body> </html>
阅读全文
0 0
- CSS动画
- css动画
- css 动画
- CSS 动画
- CSS动画
- CSS-动画
- css动画
- css动画
- CSS动画
- CSS动画
- CSS动画
- css动画
- css 动画
- css动画
- CSS动画
- CSS 动画
- css动画
- CSS动画:
- day-21-SQL语句-连接池
- 基于stm32f103最小使用code
- 【转载】svn配置文件详析
- gitlab修改默认端口号
- ifndef的使用
- css动画
- Oracle NID工具修改数据库DBID和数据库名称
- ARKit-带你走进全新的世界(三:追踪/距离感应/AR尺子)
- 计算两个数组之间重叠数字对的重叠个数(咋个办呢 zgbn)
- [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序
- 利用angular-file-upload插件批量传递文件到ftp服务器
- iOS 解析Excel
- Java通过URL下载网络文件,获取文件流并修改文件名
- Android学习之WebView和JS的交互