一年一度的电商盛会,双十一正在如火如荼的进行中,还有五天就正式开始了。
米色作为一名在电商里面摸爬滚打这么多的老司机,忍不住也到处去逛逛,看看有啥好东西。由于米色是超级吃货一枚,所以不出意外的逛到了卖零食的店铺。
可能是职业病的缘故,我进店铺首先是看店铺设计和特效表现,当进去三只松鼠店铺的时候,被其中一个特效吸引了。
有同志要问了,不就是一个简单的CSS特效嘛,至于被吸引吗?
当然了,吸引我的不是特效本身,大家都知道不管淘宝店还是天猫店,默认时候店铺里面是没有CSS权限的,也就是你制作不了特效。虽说这个特效在本地很快就能写好,但是米色君,想尝试一下,当店铺没有购买CSS权限的情况下,能不能在店铺里面也实现这个特效呢?
米色本身就是一个执行力比较强的人,说干咱就干,然后就撸起袖子一阵干.....(此处省虐1111个字)
随着一阵忙活,终于算是大功告成了。跟三只老鼠店铺一对比 基本上是一模一样了。看下图完成后效果
这时候有同志要问,要么完成,要么没完成,咋还算是完成呢?理由如下:
店铺没有购买CSS权限,所以难免效果有点小瑕疵,还好问题不大
因为米色穷,没有天猫店测试,所以暂时没有编写天猫店可用的代码,下面你将看到的代码是仅限淘宝店铺使用的。
这也是一大遗憾,如果能做成全店通用就完美了,可惜了,没有天猫店测试......
说了半天,有同志忍不住了,老湿,咱能别打这么多字吗,头晕,说半天,还是木有看到什么代码。
这位仁兄,不要慌,凡事还不得有个前奏不是,一上来就直奔主题,未免显得猴子,有失风度不是。
好了不多说了,不然该被揍了。下面来聊聊代码部分的东西:
【特效分析】:
这个效果很简单,会代码的人 基本上分分钟搞定,但是再淘宝店就不是那么好使了。好像又偏题了....
咋一看这特效,老夫掐指一算,肯定是鼠标经过分类图的时候,图片右边移动一点(0 - 0 老湿,明眼人一看就知道)
那么能实现这样效果的CSS样式有哪些呢?(定位,萎类....)
【代码说明】:
作者:米色(miser1314)
权限:无需购买CSS权限,无需购买店铺模板
你要做的只是,按照这个效果的图片样子去设计你需要的效果,然后替换图片地址,链接地址。图片原件也分享出来了
由于代码量较多,所以不懂代码的话,最好只是修改图片,不要修改改吗效果。有代码基础的话,可以做效果变形
由于米色没有天猫店,所以暂时没有做天猫版的,以后有天猫店铺了,再分享把
注意,代码中已经添加了全屏代码,所以如果你是淘宝专业版,智能版,可直接复制代码放自定义模块-源码模式下使用。如果你是基础班的,就复制下面对应的基础班代码。
【源码分享】:
由于头条不让发百度网盘,也不能传附件,所以下面代码有点多,可以提前滴一滴眼药水,不然眼睛会疯掉。。。
<!-- ======= 复制下面的代码去使用(专业版,智能版) ========== -->
<!--米色提示:全屏代码经过优化了,天猫,淘宝店通用,并且自动居中显示--><div class="miseu" style="height:660px;"><div class="footer-more-trigger most-footer cloud-footer sn-simple-logo" style="position: absolute; left: 50%; top: auto; width: 0; height: inherit; border: 0; padding: 0; background-color: transparent; display: block; overflow: visible;"><div class="footer-more-trigger most-footer cloud-footer sn-simple-logo" style="position: absolute; left:-960px; top: -0px; width: 1920px; height:660px; border: 0px; padding: 0px; display: block; overflow: hidden; background-color: transparent;"><div class="clearfix J_TWidget" style="margin: 0 auto; width:1920px; height:660px; overflow: hidden;"><div class="J_TWidget" data-widget-type="Slide" data-widget-config="{'navCls':'miseu','activeTriggerCls':'pagination miseu_css mgsns-com','interval':0.01}" style="height:660px;">
<div style="width:1920px; height:100px; background-image:url(https://img.alicdn.com/imgextra/i2/675431384/TB2InV0bnnI8KJjy0FfXXcdoVXa_!!675431384.jpg);">
<div class="miseu miseu_css mgsns-com" style="height:93px; width:1200px; margin:0 auto; position:relative;">
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position:absolute; left: -190; top:0; z-index: 10;"><img src="https://img.alicdn.com/imgextra/i3/675431384/TB2avpVbh6I8KJjSszfXXaZVXXa_!!675431384.png" width="278" height="148" alt="双十一logo" /></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position:absolute; left: 160px; top:0; z-index: 9;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2fC85bfDH8KJjy1XcXXcpdXXa_!!675431384.png" width="220" height="100" alt="分类1" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 275px; top:0; z-index: 8;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i3/675431384/TB24DBZbbYI8KJjy0FaXXbAiVXa_!!675431384.png" width="220" height="100" alt="分类2" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 395px; top:0; z-index: 7;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2fC85bfDH8KJjy1XcXXcpdXXa_!!675431384.png" width="220" height="100" alt="分类3" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 510px; top:0; z-index: 6;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i3/675431384/TB24DBZbbYI8KJjy0FaXXbAiVXa_!!675431384.png" width="220" height="100" alt="分类4" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 630px; top:0; z-index: 5;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2fC85bfDH8KJjy1XcXXcpdXXa_!!675431384.png" width="220" height="100" alt="分类5" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 745px; top:0; z-index: 4;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i3/675431384/TB24DBZbbYI8KJjy0FaXXbAiVXa_!!675431384.png" width="220" height="100" alt="分类6" /></a></button> </div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 865px; top:0; z-index: 3;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2fC85bfDH8KJjy1XcXXcpdXXa_!!675431384.png" width="220" height="100" alt="分类7" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 980px; top:0; z-index: 2;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i3/675431384/TB24DBZbbYI8KJjy0FaXXbAiVXa_!!675431384.png" width="220" height="100" alt="分类8" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 1100px; top:0; z-index: 1;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2fC85bfDH8KJjy1XcXXcpdXXa_!!675431384.png" width="220" height="100" alt="分类9" /></a></button></div></div>
<a href="#" target="_blank"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2d4h9bf6H8KJjSspmXXb2WXXa_!!675431384.png" width="1920" height="660" alt="大海报" /></a>
</div></div></div></div></div></div>
<!-- ========== 特效代码结束 ========== -->
<!-- ======= 复制下面的代码去使用(基础版) ========== -->
<!--米色提示:全屏代码经过优化了,天猫,淘宝店通用,并且自动居中显示--><div class="miseu" style="height:660px;"><div class="footer-more-trigger most-footer cloud-footer sn-simple-logo" style="position: absolute; left: 50%; top: auto; width: 0; height: inherit; border: 0; padding: 0; background-color: transparent; display: block; overflow: visible;"><div class="footer-more-trigger most-footer cloud-footer sn-simple-logo" style="position: absolute; left:-1060px; top: -0px; width: 1920px; height:660px; border: 0px; padding: 0px; display: block; overflow: hidden; background-color: transparent;"><div class="clearfix J_TWidget" style="margin: 0 auto; width:1920px; height:660px; overflow: hidden;"><div class="J_TWidget" data-widget-type="Slide" data-widget-config="{'navCls':'miseu','activeTriggerCls':'pagination miseu_css mgsns-com','interval':0.01}" style="height:660px;">
<div style="width:1920px; height:100px; background-image:url(https://img.alicdn.com/imgextra/i2/675431384/TB2InV0bnnI8KJjy0FfXXcdoVXa_!!675431384.jpg);">
<div class="miseu miseu_css mgsns-com" style="height:93px; width:1200px; margin:0 auto; position:relative;">
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position:absolute; left: -190; top:0; z-index: 10;"><img src="https://img.alicdn.com/imgextra/i3/675431384/TB2avpVbh6I8KJjSszfXXaZVXXa_!!675431384.png" width="278" height="148" alt="双十一logo" /></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position:absolute; left: 160px; top:0; z-index: 9;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2fC85bfDH8KJjy1XcXXcpdXXa_!!675431384.png" width="220" height="100" alt="分类1" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 275px; top:0; z-index: 8;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i3/675431384/TB24DBZbbYI8KJjy0FaXXbAiVXa_!!675431384.png" width="220" height="100" alt="分类2" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 395px; top:0; z-index: 7;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2fC85bfDH8KJjy1XcXXcpdXXa_!!675431384.png" width="220" height="100" alt="分类3" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 510px; top:0; z-index: 6;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i3/675431384/TB24DBZbbYI8KJjy0FaXXbAiVXa_!!675431384.png" width="220" height="100" alt="分类4" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 630px; top:0; z-index: 5;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2fC85bfDH8KJjy1XcXXcpdXXa_!!675431384.png" width="220" height="100" alt="分类5" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 745px; top:0; z-index: 4;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i3/675431384/TB24DBZbbYI8KJjy0FaXXbAiVXa_!!675431384.png" width="220" height="100" alt="分类6" /></a></button> </div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 865px; top:0; z-index: 3;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2fC85bfDH8KJjy1XcXXcpdXXa_!!675431384.png" width="220" height="100" alt="分类7" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 980px; top:0; z-index: 2;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i3/675431384/TB24DBZbbYI8KJjy0FaXXbAiVXa_!!675431384.png" width="220" height="100" alt="分类8" /></a></button></div>
<div class="footer-more-trigger miseu_css mgsns-com" style=" border:0; padding:0; float:left; width:220px; height:100px; position: absolute; left: 1100px; top:0; z-index: 1;"><button style="border: 0; background-color: transparent; padding: 0; height: 100px; transition: all .2s cubic-bezier(0.19,0.9,0.45,3); -webkit-transition: all .2s cubic-bezier(0.19,0.9,0.45,3);"><a href="#" target="_blank" style=" width: 220px; height: 100px; background: transparent; margin: 0; padding: 0; float: none; border: 0;"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2fC85bfDH8KJjy1XcXXcpdXXa_!!675431384.png" width="220" height="100" alt="分类9" /></a></button></div></div>
<a href="#" target="_blank"><img src="https://img.alicdn.com/imgextra/i1/675431384/TB2d4h9bf6H8KJjSspmXXb2WXXa_!!675431384.png" width="1920" height="660" alt="大海报" /></a>
</div></div></div></div></div></div>
<!-- ========== 特效代码结束 ========== -->
最后说明:由于上面代码空格有点吓人,我也不确定复制后,是不是会影响使用,如果需要源码文件的,可以留言回复。