Firefox에서 제대로 작동하지만 CSS3 애니메이션이 Chrome 브라우저에 표시되지 않습니다. www.stamp4all.com에서 최종 결과를 볼 수 있습니다. 애니메이션은 회전하는 화살표입니다.CSS3 애니메이션이 크롬에서 작동하지 않습니다.
/* Some stylesheet reset */
#sidemenu > ul {
list-style: none;
margin: 0;
padding: 0;
vertical-align: baseline;
line-height: 1;
}
/* The container */
#sidemenu > ul {
display: block;
position: relative;
width: 133px;
/* The list elements which contain the links */
}
#sidemenu > ul li {
display: block;
position: relative;
margin: 0;
padding: 0;
width: 100%;
}
/* General link styling */
#sidemenu > ul li a {
/* Layout */
display: block;
position: relative;
margin: 0;
border-top: 0.14em dotted #3a3a3a;
border-bottom: 0.14em dotted #1b1b1b;
padding: 12px 15px;
/* Typography */
font-family: Helvetica, Arial, sans-serif;
color: #d8d8d8;
text-decoration: none;
text-transform: uppercase;
text-shadow: 0 1px 1px #000;
font-size: 15px;
font-weight: 300;
/* Background & effects */
background: #282828; /* !!! animated menue background !!!! */
}
#sidemenu > ul li > a {
border-radius:10px;
}
/* The hover state of the menu/submenu links */
#sidemenu > ul li > a:hover,
#sidemenu > ul li:hover > a {
color: #ffffff;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
background: #52cef0;
background: -webkit-linear-gradient(#70d5f1, #52cef0);
background: -moz-linear-gradient(#70d5f1, #52cef0);
background: linear-gradient(#70d5f1, #52cef0);
border-color: transparent;
}
/* The arrow indicating a submenu */
#sidemenu > ul .has-sub > a::after {
content: '';
position: absolute;
top: 16px;
right: 120px;
width: 0px;
height: 0px;
/* Creating the arrow using borders */
border: 5px solid transparent;
border-right: 5px solid #d8d8d8;
/* effect, rotate 720 the arrows */
-webkit-transition: transform 1.5s;
-moz-transition: transform 1.5s;
transition: transform 1.5s;
}
/* The same arrow, but with a darker color, to create the shadow effect */
#sidemenu > ul .has-sub > a::before {
content: '';
position: absolute;
top: 15px;
right: 120px;
width: 0px;
height: 0px;
/* Creating the arrow using borders */
border: 6px solid transparent;
border-right: 6px solid #000;
/* effect, rotate 720 the arrows */
-webkit-transition: transform 1.5s;
-moz-transition: transform 1.5s;
transition: transform 1.5s;
}
/* Changing the color of the arrow on hover */
#sidemenu > ul li > a:hover::after,
#sidemenu > ul li:hover > a::after {
border-right: 4px solid #ffffff;
transform: rotate(720deg);
}
#sidemenu > ul li > a:hover::before,
#sidemenu > ul li:hover > a::before {
border-right: 4px solid rgba(0, 0, 0, 0.3);
transform: rotate(720deg);
}
/* THE SUBMENUS */
#sidemenu > ul ul {
position: absolute;
right: 100%;
top: -9999px;
padding-right: 3px;
opacity: 0;
width: 0px;
/* The fade effect, created using an opacity transition */
-webkit-transition: opacity 1.3s, width 1s, transform 0.7s;
-moz-transition: opacity 1.3s, width 1s, transform 0.7s;
transition: opacity 1.3s, width 1s, transform 0.7s;
}
/* Showing the submenu when the user is hovering the parent link */
#sidemenu > ul li:hover > ul {
top: 0px;
opacity: 1;
width: 110px;
}
그리고 HTML 코드 :
<div id="sidemenu">
<ul>
<li><a href="index.php?main=include/about_us.html" >אודות</a></li>
<li class='has-sub'><a href="index.php?main=products" >חותמת מלבנית</a>
<ul>
<li><a href="index.php?main=products/rectangle/p20.html" >P20 - 14X38מ"מ</a></li>
<li><a href="index.php?main=products/rectangle/p30.html" >P30 - 18X47מ"מ</a></li>
<li><a href="index.php?main=products/rectangle/p40.html" >P40 - 23X59מ"מ</a></li>
<li><a href="index.php?main=products/rectangle/p45.html" >P45 - 25X82מ"מ</a></li>
<li><a href="index.php?main=products/rectangle/p50.html" >P50 - 30X69מ"מ</a></li>
<li><a href="index.php?main=products/rectangle/p60.html" >P60 - 37X76מ"מ</a></li>
</ul>
</li>
<li class='has-sub'><a href="#" >חותמת מרובעת</a>
<ul>
<li><a href="#" >Q30 - 14X38mm</a></li>
<li><a href="#" >Q43 - 18X47mm</a></li>
</ul>
</li>
<li class='has-sub'><a href="#" >חותמת עגולה</a>
<ul>
<li><a href="#" >R12 - 14X38mm</a></li>
<li><a href="#" >R17 - 18X47mm</a></li>
<li><a href="#" >R24 - 18X47mm</a></li>
<li><a href="#" >R40 - 18X47mm</a></li>
<li><a href="#" >R50 - 18X47mm</a></li>
</ul>
</li>
<li class='has-sub'><a href="#" >חותמת תאריך</a>
<ul>
<li><a href="#" >S120 - 14X38mm</a></li>
<li><a href="#" >S160 - 18X47mm</a></li>
<li><a href="#" >S360 - 18X47mm</a></li>
<li><a href="#" >S660 - 18X47mm</a></li>
</ul>
</li>
<li><a href="index.php?main=contuct_us" >צור קשר</a></li>
</ul>
</div>
이 왜 크롬으로 회전되지 여기
는 CSS 코드?
아직 작동하지 않습니다 ... –
그 CSS에는 많은 관련이없는 것들이 포함되어 있습니다. 가장 간단한 작업 코드로 시작하여 작업을 진행 한 다음 문제가 발생한 곳을 알려주십시오. 다음은 작동 예제입니다. http://jsfiddle.net/Ld8t9/3/ – leo
예제는 요소를 회전합니다. 나는 CSS 화살표 (테두리 arroes)가 회전합니다 ....이 화살표에 대한 요소가 없습니다 –