Skip to content

Commit

Permalink
Add transitions back (#5160)
Browse files Browse the repository at this point in the history
  • Loading branch information
manelli authored Oct 3, 2024
1 parent ed87a6f commit 50ddc97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/oli_web/live/workspaces/instructor/index_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ defmodule OliWeb.Workspaces.Instructor.IndexLive do
phx-mounted={
JS.transition(
{"ease-out duration-300", "opacity-0 -translate-x-1/2", "opacity-100 translate-x-0"},
time: 300
time: if(@index < 6, do: 100 + @index * 20, else: 240)
)
}
class="opacity-0 flex flex-col w-96 h-[500px] rounded-lg border-2 border-gray-700 transition-all overflow-hidden bg-white"
Expand Down
4 changes: 2 additions & 2 deletions lib/oli_web/live/workspaces/student.ex
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ defmodule OliWeb.Workspaces.Student do
JS.transition(
{"ease-out duration-300", "opacity-0 -translate-x-1/2",
"opacity-100 translate-x-0"},
time: 300 + index * 60
time: if(index < 6, do: 100 + index * 20, else: 240)
)
|> JS.remove_class("opacity-100 translate-x-0")
}
Expand Down Expand Up @@ -309,7 +309,7 @@ defmodule OliWeb.Workspaces.Student do
phx-mounted={
JS.transition(
{"ease-out duration-300", "opacity-0 -translate-x-1/2", "opacity-100 translate-x-0"},
time: 300
time: if(@index < 6, do: 100 + @index * 20, else: 240)
)
}
class="opacity-0 flex flex-col w-96 h-[500px] rounded-lg border-2 border-gray-700 transition-all overflow-hidden bg-white"
Expand Down

0 comments on commit 50ddc97

Please sign in to comment.