gpt4 book ai didi

html - 右侧的 CSS 过渡 Logo

转载 作者:行者123 更新时间:2023-11-28 06:48:07 25 4
gpt4 key购买 nike

我想让我的标志从右边进入。我已经尝试了几乎所有的方法,请帮忙。

<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-language" content="en">
<title>StratHaxxs Co. Home </title>
<link rel="stylesheet" type="text/css" href="index_files/style.css">
<link rel="stylesheet" type="text/css" href="index_files/animate.css">
<link rel="shortcut icon" href="index_files/icon.ico" type="image/x-icon">

</head>
<body>


<!-- LOGO LOGO LOGO LOGO LOGO LOGO LOGO LOGO LOGO LOGO LOGO LOGO -->
<div class="container">
<img src="index_files/photo.jpg" alt="StratHaxxs Co. Logo" width="73" height="73" align="left" style="padding-top: 8px;padding-left:9px">
<img src="index_files/logo.jpg" alt="StratHaxxs Co. Logo" id="logo" width="500">
</div>
<!-- LOGO LOGO LOGO LOGO LOGO LOGO LOGO LOGO LOGO LOGO LOGO LOGO -->

<div class="wrapper">
<table class="container" style="border-collapse:collapse;" border="0" width="100%">
<colgroup><col width="15%"><col width="85%"></colgroup>
<tbody><tr>
<td id="nav" class="each" width="18%">
<br>
<b style="color:black;">Section</b><br>
<a href="" class="navlinks">&gt; Link</a><br>
<br>
<br><br>
<br>
<br>
<div style="width:80%; height:18px; background-color:#FFFFFF; border:1px solid #3D5D80;">
<div >
<span style="font-size:8px; color: #000000;">&nbsp;5%&nbsp;</span>
</div></div>
<br>
<br>
</td>
<td id="txt" class="each" width="85%">
<div align="center"> <table class="news" border="0" width="100%">
<colgroup><col width="70%"><col width="30%"></colgroup>
<tbody><tr>
<td class="topic">Topic</td>
<td class="date">Date</td>
</tr><tr>
<td colspan="2" class="text"><br>
</td>
</tr><tr>
<td class="author">.: by <a href="" target="blank">Author</a></td>
<td class="comments">Comments</td>
</tr> </tbody></table> </div>
<div align="center"> <table class="news" border="0" width="100%">
<colgroup><col width="70%"><col width="30%"></colgroup>
<tbody><tr>
<td class="topic">Topic</td>
<td class="date">Date</td>
</tr><tr>
<td colspan="2" class="text"><br>
</td>
</tr><tr>
<td class="author">.: by <a href="" target="blank">Author</a></td>
<td class="comments">Comments</td>
</tr>
</tbody></table>
<br>
</div>
</table>
<div style="font-family:Verdana,sans-serif;font-size:9pt;text-align:center;padding:20px;color:#888;">© Copyright 2015 StratHaxxs Co.</div>
</div>
</body>
</html>
再一次,我在互联网上到处寻找东西,但没有运气。这也应该是跨浏览器

最佳答案

Here is a great resource for css3 animations

我在这个例子中使用了“bounceInRight”动画。将类 animated 添加到您的 Logo 容器 div。

.animated {
visibility: visible;
float: right;

-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s;
-webkit-animation-name: bounceInRight;
animation-name: bounceInRight;
}

@-webkit-keyframes bounceInRight {
from, 60%, 75%, 90%, to {
-webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

from {
opacity: 0;
-webkit-transform: translate3d(3000px, 0, 0);
transform: translate3d(3000px, 0, 0);
}

60% {
opacity: 1;
-webkit-transform: translate3d(-25px, 0, 0);
transform: translate3d(-25px, 0, 0);
}

75% {
-webkit-transform: translate3d(10px, 0, 0);
transform: translate3d(10px, 0, 0);
}

90% {
-webkit-transform: translate3d(-5px, 0, 0);
transform: translate3d(-5px, 0, 0);
}

to {
-webkit-transform: none;
transform: none;
}
}

@keyframes bounceInRight {
from, 60%, 75%, 90%, to {
-webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

from {
opacity: 0;
-webkit-transform: translate3d(3000px, 0, 0);
transform: translate3d(3000px, 0, 0);
}

60% {
opacity: 1;
-webkit-transform: translate3d(-25px, 0, 0);
transform: translate3d(-25px, 0, 0);
}

75% {
-webkit-transform: translate3d(10px, 0, 0);
transform: translate3d(10px, 0, 0);
}

90% {
-webkit-transform: translate3d(-5px, 0, 0);
transform: translate3d(-5px, 0, 0);
}

to {
-webkit-transform: none;
transform: none;
}
}

关于html - 右侧的 CSS 过渡 Logo ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33929741/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com