ADD fade transition choice
This commit is contained in:
parent
6732c64d5f
commit
d9b32d86f3
@ -7,6 +7,7 @@
|
||||
authors: [],
|
||||
date: datetime.today(),
|
||||
duration: none,
|
||||
fade: true,
|
||||
handout: false,
|
||||
doc,
|
||||
) = {
|
||||
@ -36,17 +37,23 @@
|
||||
enable-handout-mode(true)
|
||||
}
|
||||
|
||||
let transition = if fade {
|
||||
"fade"
|
||||
} else {
|
||||
"none"
|
||||
}
|
||||
|
||||
if duration != none{
|
||||
pdfpc.config(
|
||||
duration-minutes: duration,
|
||||
default-transition: (
|
||||
type: "fade",
|
||||
type: transition,
|
||||
)
|
||||
)
|
||||
} else {
|
||||
pdfpc.config(
|
||||
default-transition: (
|
||||
type: "fade",
|
||||
type: transition,
|
||||
)
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user