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="background-1">
|
||||
</div>
|
||||
<div class="background-2"></div>
|
||||
{{#if this.loadingRewind}}
|
||||
<div class="rewind-loader">
|
||||
<div class="spinner small"></div>
|
||||
|
@ -34,17 +34,25 @@
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
max-width: 960px;
|
||||
background: var(--secondary);
|
||||
}
|
||||
|
||||
.background-1 {
|
||||
background: url(/plugins/discourse-rewind/images/bg-1.png);
|
||||
background-size: cover;
|
||||
&::before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
transform: translateY(0px);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.background-2 {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 300%;
|
||||
background: url(/plugins/discourse-rewind/images/bg-2.png);
|
||||
background-size: contain;
|
||||
}
|
||||
transform: translateY(0px);
|
||||
}
|
||||
|
||||
.rewind__scroll-wrapper {
|
||||
|
Loading…
x
Reference in New Issue
Block a user