Add transition duration setting for SlideshowExt
parent
279d5c5d8f
commit
3cd2452b68
|
@ -5,6 +5,14 @@ extends@:
|
||||||
form:
|
form:
|
||||||
validation: loose
|
validation: loose
|
||||||
fields:
|
fields:
|
||||||
|
header.transduration:
|
||||||
|
type: text
|
||||||
|
label: Übergangsdauer
|
||||||
|
help: 'Dauer des Übergangs (Fade-In bzw. -Out) zwischen zwei Slides in Sekunden'
|
||||||
|
default: 2
|
||||||
|
validate:
|
||||||
|
required: true
|
||||||
|
type: int
|
||||||
header.slides:
|
header.slides:
|
||||||
type: list
|
type: list
|
||||||
style: vertical
|
style: vertical
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: visibility 0s 2s, opacity 2s linear;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
|
@ -4,10 +4,14 @@
|
||||||
{% do assets.addCss('theme://css/slideshowext.css', 90) %}
|
{% do assets.addCss('theme://css/slideshowext.css', 90) %}
|
||||||
{% set slideStyle %}
|
{% set slideStyle %}
|
||||||
{% for image in slides %}
|
{% for image in slides %}
|
||||||
|
.slideshow-ext > .slide-content {
|
||||||
|
transition: visibility 0s {{ page.header.transduration }}s, opacity {{ page.header.transduration }}s linear;
|
||||||
|
}
|
||||||
|
|
||||||
#slide{{ loop.index }}:checked ~ #slide-content{{ loop.index }} {
|
#slide{{ loop.index }}:checked ~ #slide-content{{ loop.index }} {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
transition: visibility 0s 2s, opacity 2s 2s linear;
|
transition: visibility 0s {{ page.header.transduration }}s, opacity {{ page.header.transduration }}s {{ page.header.transduration }}s linear;
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for image in slides %}
|
{% for image in slides %}
|
||||||
|
|
Loading…
Reference in New Issue