html+css3实现文字环绕旋转特效

 时间:2024-09-20 20:29:26

html+css3实现文字环绕旋转特效

工具/原料

adobedreamweaver

方法/步骤

1、新建html文档。

html+css3实现文字环绕旋转特效

2、书写hmtl代艨位雅剖码。<divclass="emblem"><s禊诬娱飑panstyle="transform:rotateZ(0deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(20deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(40deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(60deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(80deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(100deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(120deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(140deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(160deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(180deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(200deg)translate3d(0px,0px,0px);">.</span><spanstyle="transform:rotateZ(220deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(240deg)translate3d(0px,0px,0px);">h</span><spanstyle="transform:rotateZ(260deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(280deg)translate3d(0px,0px,0px);">.</span><spanstyle="transform:rotateZ(300deg)translate3d(0px,0px,0px);">百</span><spanstyle="transform:rotateZ(320deg)translate3d(0px,0px,0px);">n</span><spanstyle="transform:rotateZ(340deg)translate3d(0px,0px,0px);">*</span></div>

html+css3实现文字环绕旋转特效

3、初始化css代码。html,body{height:100%;margin:0;overflow:hidden;background:#FFFCEC;font-family:"MicrosoftYaHei","宋体","SegoeUI","LucidaGrande",Helvetica,Arial,sans-serif,FreeSans,Arimo;}

html+css3实现文字环绕旋转特效

4、书写css代码跷孳岔养。<style>.emblem{position:absolute;造婷用痃left:0;right:0;top:25vh;margin:0auto;width:50vh;height:50vh;border-radius:50%;font-weight:bold;color:#003A6F;animation:spinZ20slinearinfinite;text-align:center;}.emblemspan{position:absolute;display:inline-block;left:0;right:0;top:0;bottom:0;text-transform:uppercase;font-size:4vh;transition:all0.5scubic-bezier(0,0,0,1);}@keyframesspinZ{0%{transform:rotateZ(360deg);}100%{transform:rotateZ(0deg);}}</style>

html+css3实现文字环绕旋转特效

5、代码整体结构。

html+css3实现文字环绕旋转特效

6、查看效果。

html+css3实现文字环绕旋转特效

HTML5的网页制作基础 以下程序的输出结果是()main(){ int a=3,b=2,c=1; HTML之CSS 边框与边界 Java编程语言中如何快速将列表内容翻转 Javascript随机显示图片并设置宽高
热门搜索
同人h漫画 花束图片 保温杯图片 暴躁图片 小燕子图片