Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.6k views
in Technique[技术] by (71.8m points)

swiper - How about changing the default crossFade setting for fadeEffect?

I am Japanese. I am writing English using Google Translate. Please forgive me though it may be difficult to understand.

Images with different aspect ratios were used in effect: fade. Inactive slides were supposed to be opacity: 0;, active slides and earlier slides are opacity: 1;, and slides after the active slide are opacity: 0; I was doing it. As a result, images with different aspect ratios overlapped and some of the inactive images were visible.

What are the use cases that require the current default (fadeEffect: {crossFade: false})? I felt that fadeEffect: {crossFade: true} would be more useful in many cases if possible, so I would like to suggest setting it as the default.

Attach the working GIF file. The left is fadeEffect: {crossFade: false} and the right is fadeEffect: {crossFade: true}.

Thank you.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

Just Browsing Browsing

[2] html - How to create even cell spacing within a

2.1m questions

2.1m answers

60 comments

56.6k users

...