Skip to content

Commit

Permalink
smooth animation
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac committed Jul 26, 2023
1 parent 1398e09 commit c19573b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/status_im2/contexts/communities/home/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@
(utils.number/value-in-range 0 1))
new-translation-y (-> (- scroll-offset)
(utils.number/value-in-range max-scroll 0))]
(reanimated/set-shared-value opacity new-opacity)
(reanimated/set-shared-value translation-y new-translation-y)))
(reanimated/animate-shared-value-with-timing opacity new-opacity 80 :easing4)
(reanimated/animate-shared-value-with-timing translation-y new-translation-y 80 :easing4)))

(defn home
[]
Expand Down

0 comments on commit c19573b

Please sign in to comment.