mirror of
https://github.com/discourse/discourse-rewind.git
synced 2025-07-08 06:32:46 +00:00
parallax
This commit is contained in:
parent
35628ccc33
commit
1fd84fff3b
@ -70,6 +70,9 @@ export default class Rewind extends Component {
|
|||||||
>
|
>
|
||||||
|
|
||||||
<div class="rewind">
|
<div class="rewind">
|
||||||
|
<div class="background-1">
|
||||||
|
</div>
|
||||||
|
<div class="background-2"></div>
|
||||||
{{#if this.loadingRewind}}
|
{{#if this.loadingRewind}}
|
||||||
<div class="rewind-loader">
|
<div class="rewind-loader">
|
||||||
<div class="spinner small"></div>
|
<div class="spinner small"></div>
|
||||||
|
@ -34,17 +34,25 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
max-width: 960px;
|
max-width: 960px;
|
||||||
|
background: var(--secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.background-1 {
|
||||||
background: url(/plugins/discourse-rewind/images/bg-1.png);
|
background: url(/plugins/discourse-rewind/images/bg-1.png);
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
&::before {
|
position: absolute;
|
||||||
content: "";
|
transform: translateY(0px);
|
||||||
display: block;
|
width: 100%;
|
||||||
position: absolute;
|
height: 100%;
|
||||||
width: 100%;
|
}
|
||||||
height: 300%;
|
|
||||||
background: url(/plugins/discourse-rewind/images/bg-2.png);
|
.background-2 {
|
||||||
background-size: contain;
|
position: absolute;
|
||||||
}
|
width: 100%;
|
||||||
|
height: 300%;
|
||||||
|
background: url(/plugins/discourse-rewind/images/bg-2.png);
|
||||||
|
background-size: contain;
|
||||||
|
transform: translateY(0px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.rewind__scroll-wrapper {
|
.rewind__scroll-wrapper {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user