From e91e591e13e8f0488d60637575f98f06df9bc668 Mon Sep 17 00:00:00 2001 From: Priyanka Gour Date: Wed, 13 Sep 2023 14:08:17 +0530 Subject: [PATCH] Replace swiper with div for pure css animation --- .../ios-app-development/BlogSection.vue | 99 +++++++------------ vue-frontend/tailwind.config.cjs | 13 ++- 2 files changed, 48 insertions(+), 64 deletions(-) diff --git a/vue-frontend/src/components/ios-app-development/BlogSection.vue b/vue-frontend/src/components/ios-app-development/BlogSection.vue index 14ae83951..37147b5db 100644 --- a/vue-frontend/src/components/ios-app-development/BlogSection.vue +++ b/vue-frontend/src/components/ios-app-development/BlogSection.vue @@ -6,57 +6,44 @@ Our Blogs -
- +
- +
+
- -
-

- {{ blog.title }} -

+ {{ blog.title }} + - - {{ blog.readTime }} - -
+ + {{ blog.readTime }} +
- - +
+
@@ -158,7 +145,6 @@ export default { readTime: "5 min read", deskImage: [dektop_blog1_800w, dektop_blog1_1200w], link: "https://blog.canopas.com/the-ultimate-guide-to-ios-unit-testing-with-best-practices-part-2-f2eacbf3d8d4", - className: "", }, { title: "SwiftUI Performance Tuning: Tips and Tricks", @@ -166,7 +152,7 @@ export default { readTime: "8 min read", deskImage: [dektop_blog2_800w, dektop_blog2_1200w], link: "https://blog.canopas.com/swiftui-performance-tuning-tips-and-tricks-a8f9eeb23ec4", - className: "-tw-rotate-6 tw-animate-slideLeft ", + className: "tw-animate-slideLeft ", }, { title: "Designing Data Layer For Offline-first Apps", @@ -174,7 +160,7 @@ export default { readTime: "7 min read", deskImage: [dektop_blog3_800w, dektop_blog3_1200w], link: "https://blog.canopas.com/ios-designing-data-layer-for-offline-first-apps-f929c83bb195", - className: "tw-rotate-6 tw-animate-slideLeft ", + className: "tw-animate-slideLeftOdd !tw-delay-300", }, { title: "SwiftUI — Complex navigation made easier with UIPilot", @@ -182,7 +168,7 @@ export default { readTime: "5 min read", deskImage: [dektop_blog4_800w, dektop_blog4_1200w], link: "https://blog.canopas.com/swiftui-complex-navigation-made-easier-with-uipilot-5b33279f3476", - className: "-tw-rotate-6 tw-animate-slideLeft ", + className: "tw-animate-slideLeft !tw-delay-500", }, { title: "A Complete Guide to iOS App Auto Deployment with CI-CD", @@ -190,7 +176,7 @@ export default { readTime: "7 min read", deskImage: [dektop_blog5_800w, dektop_blog5_1200w], link: "https://blog.canopas.com/a-complete-guide-to-ios-app-auto-deployment-with-ci-cd-b5dc516ba41d", - className: "tw-rotate-6 tw-animate-slideLeft", + className: "tw-animate-slideLeftOdd !tw-delay-700", }, ], }; @@ -210,17 +196,4 @@ export default { diff --git a/vue-frontend/tailwind.config.cjs b/vue-frontend/tailwind.config.cjs index fe19fe0e2..7ede90f05 100755 --- a/vue-frontend/tailwind.config.cjs +++ b/vue-frontend/tailwind.config.cjs @@ -154,7 +154,17 @@ module.exports = { }, "100%": { opacity: "1", - transform: "translateX(-100%)", + transform: "rotate(2deg) translateX(-110%)", + }, + }, + slideLeftOdd: { + "0%": { + opacity: "0", + transform: "translateX(0) ", + }, + "100%": { + opacity: "1", + transform: "rotate(-2deg) translateX(-110%)", }, }, }, @@ -172,6 +182,7 @@ module.exports = { slideDown: "slideDown 7s infinite", slideRight: "slideRight 7s infinite", slideLeft: "slideLeft 3s forwards", + slideLeftOdd: "slideLeftOdd 3s forwards", fadeUp: "fadeUp 4s ease-in", fadeSlide: "fadeIn 4s ease-in-out", fadeSlideOut: "fadeOut 2.5s ease-in-out",