Skip to content

Commit

Permalink
[improvement] no default slot step fade out animation improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
f820602h committed Oct 13, 2023
1 parent cfb0a06 commit b6ec730
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vue-stage-play",
"description": "Designing a guided tour for your website with vue components, much like directing a stage play.",
"private": false,
"version": "0.3.0",
"version": "0.3.1",
"author": "max.lee <f820602h@gmail.com>",
"license": "MIT",
"homepage": "/~https://github.com/f820602h/vue-stage-play#readme",
Expand Down
12 changes: 10 additions & 2 deletions src/components/StagePlayScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,18 @@ export const StagePlayScene = defineComponent({
{
class: "vue-stage-play__scene",
style: {
position: slots.default ? "relative" : "fixed",
position: slots.default
? isCurrentScene.value
? "relative"
: undefined
: "fixed",
top: slots.default ? undefined : "50%",
left: slots.default ? undefined : "50%",
zIndex: isCurrentScene.value ? "99998" : "",
zIndex: slots.default
? isCurrentScene.value
? "99998"
: undefined
: "99998",
transform: slots.default ? undefined : "translate(-50%, -50%)",
},
},
Expand Down

0 comments on commit b6ec730

Please sign in to comment.