Skip to content

Commit

Permalink
Remove Animation of background from mobile device
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-priyanka-g committed Sep 20, 2023
1 parent b331c18 commit e15d448
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions vue-frontend/src/components/ios-app-development/SuccessStory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
:srcset="`${reviewBackgroundImage} 400w`"
class="tw-h-full tw-w-full tw-object-cover tw-ease-in-out tw-duration-1000"
alt="ios-review-image"
id="scaling-image"
/>
<div
class="tw-container swiper-content tw-absolute tw-p-4 tw-w-full tw-text-center tw-text-[#FFF] tw-transform tw-left-1/2 tw-top-1/2 tw--translate-x-1/2 tw--translate-y-1/2 xl:tw-w-[80%] md:tw-top-[49%] lg:tw-top-[48%]"
Expand Down Expand Up @@ -232,20 +231,7 @@ export default {
],
};
},
mounted() {
const image = document.getElementById("scaling-image");
let scaleCount = 0;
function scaleImage() {
if (scaleCount <= 5) {
image.style.transform = `scale(${1 + scaleCount * 0.1})`;
scaleCount++;
} else {
image.style.transform = "scale(1)";
scaleCount = 0;
}
}
setInterval(scaleImage, 5000);
},
components: {
Swiper,
SwiperSlide,
Expand Down

0 comments on commit e15d448

Please sign in to comment.