打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Html+Time代码之图片拉远和拉近
一、以图片左上角为支点的控制
原代码:
<DIV style="position:relative; top:10px; left:50px; width:600px; height:450px;overflow: hidden">
<?import namespace = t urn = "urn:schemas-microsoft-com:time" implementation = "#default#time2" declareNamespace />
<t:media id=media1 style="POSITION: absolute; LEFT: 0px;TOP: 0px; WIDTH: 600px; HEIGHT: 450px" src = "图片地址">
<t:animate id=large1 attributeName = "width" from = "300" targetElement = "media1" to = "1200" autoReverse = "true" begin = "1" dur = "6" fill = "hold" repeatCount = "indefinite"></t:animate>
<t:animate id=large2 attributeName = "height" from = "230" targetElement = "media1" to = "960" autoReverse = "true" begin = "large1.begin" dur = "6" fill = "hold" repeatCount = "indefinite"> </t:animate>
</t:media> </DIV>
二、以图片中心为支点的控制
原代码:
<table width="600" height="450" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td align="center">
<?import namespace = t urn = "urn:schemas-microsoft-com:time" implementation = "#default#time2" declareNamespace />
<img id="i2" src="图片地址" width=10 height=7>
<t:animate id=large1 attributeName = "width" from = "10" targetElement = "i2" to = "600" autoReverse = "true" begin = "1" dur = "3" fill = "hold" repeatCount = "indefinite"></t:animate>
<t:animate id=large2 attributeName = "height" from = "7" targetElement = "i2" to = "450" autoReverse = "true" begin = "large1.begin" dur = "3" fill = "hold" repeatCount = "indefinite">
</t:animate>
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
使颜色不断变换的特效
图片逐渐打开
纯SVG实现的Loading动画,拿走不谢
SVG学习笔录(二)
一篇文章带你了解SVG <Animation> 动画元素
如何制作SVG颜色渐变动画效果
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服