Commit 617ec579 authored by xinzhedeai's avatar xinzhedeai

中间页欢迎语滚动处理

parent d67733c9
...@@ -2,10 +2,23 @@ ...@@ -2,10 +2,23 @@
<div class="login" :style="'background-image:url(' + Background + ');'"> <div class="login" :style="'background-image:url(' + Background + ');'">
<div class="topTitle" :style="'background-image:url(' + Title + ');'"> <div class="topTitle" :style="'background-image:url(' + Title + ');'">
中和地信企业管理平台 中和地信企业管理平台
</div> </div>
<div class="subTopTitle"> <div class="subTopTitle">
<h2 :style="'background-image:url(' + Welcome + ');'"> <h2 :style="'background-image:url(' + Welcome + ');'">
<img src="@/assets/home4Index/icon5.png" />中和地信有限公司欢迎您! <img src="@/assets/home4Index/icon5.png" />
<div class="wrapper" style=" position: absolute;
top: 38px;
left: 86px;
width: 300px;
padding-left: 20px;
overflow: hidden;
"> <div class="floating-text">
中和地信有限公司欢迎您!
</div>
</div>
</h2> </h2>
<h2 @click="navTo('admin')" style="cursor: pointer;"> <h2 @click="navTo('admin')" style="cursor: pointer;">
<img src="@/assets/home4Index/icon6.png" />管理后台 <img src="@/assets/home4Index/icon6.png" />管理后台
...@@ -124,11 +137,11 @@ export default { ...@@ -124,11 +137,11 @@ export default {
<style rel="stylesheet/scss" lang="scss"> <style rel="stylesheet/scss" lang="scss">
@keyframes floatShadow { @keyframes floatShadow {
0% { 0% {
transform: translateX(1300px); transform: translateX(280px);
display: block; display: block;
} }
100% { 100% {
transform: translateX(-1300px); transform: translateX(-300px);
display: none; display: none;
} }
} }
...@@ -136,15 +149,15 @@ export default { ...@@ -136,15 +149,15 @@ export default {
.floating-text { .floating-text {
font-size: 18px; font-size: 18px;
line-height: 1; line-height: 1;
color: #fdd756; color: #fff;
text-shadow: 0 0 5px #fff; text-shadow: 0 0 5px #fff;
animation: floatShadow; animation: floatShadow;
animation-name: floatShadow; animation-name: floatShadow;
animation-duration: 20s; animation-duration: 10s;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-timing-function: linear; animation-timing-function: linear;
position: absolute; // position: absolute;
top: 8px; // top: 38px;
} }
.subTopTitle { .subTopTitle {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment