add a nice fade effect
This commit is contained in:
parent
ff6c370ef1
commit
75d78d44a2
|
@ -1,8 +1,10 @@
|
|||
<:Window bind:online />
|
||||
<div class="timeline" role="feed" aria-label="{{label}}" on:initialized >
|
||||
<div class="timeline" role="feed" aria-label="{{label}}" on:initialized>
|
||||
<VirtualList component="{{StatusListItem}}"
|
||||
items="{{keyedStatuses}}"
|
||||
on:scrollToBottom="onScrollToBottom()" />
|
||||
on:scrollToBottom="onScrollToBottom()"
|
||||
shown="{{initialized}}"
|
||||
/>
|
||||
</div>
|
||||
<style>
|
||||
.timeline {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!-- TODO: setting height is hacky, just make this element the scroller -->
|
||||
<div class="virtual-list" style="height: {{$height}}px;">
|
||||
<div class="virtual-list {{shown ? '' : 'hidden'}}" style="height: {{$height}}px;">
|
||||
{{#each $visibleItems as item @key}}
|
||||
<VirtualListItem :component
|
||||
offset="{{item.offset}}"
|
||||
|
@ -12,6 +12,7 @@
|
|||
<style>
|
||||
.virtual-list {
|
||||
position: relative;
|
||||
transition: opacity 0.25s linear;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
|
|
Loading…
Reference in a new issue