0
JavaScript로 페이지 말림에 성공했지만 약간 느린 것 같습니다. 순수 CSS로 페이지를 뒤집을 수 있습니까?CSS3의 말림 (뒤집기)
이 코드
function drawFlip(flip) {
// Strength of the fold is strongest in the middle of the book
var strength = 1 - Math.abs(flip.progress);
// Width of the folded paper
var foldWidth = (PAGE_WIDTH * 0.165) * (1 - flip.progress/0.5);
// X position of the folded paper
var foldX = PAGE_WIDTH * flip.progress + foldWidth;
// How far the page should outdent vertically due to perspective
var verticalOutdent = 20 * strength;
// The maximum width of the left and right side shadows
var paperShadowWidth = (PAGE_WIDTH * 0.5) * Math.max(Math.min(1 - flip.progress, 0.5), 0);
var rightShadowWidth = (PAGE_WIDTH * 0.5) * Math.max(Math.min(strength, 0.5), 0);
var leftShadowWidth = (PAGE_WIDTH * 0.5) * Math.max(Math.min(strength, 0.5), 0);
덕분에 많이 CSS3 페이지 플립입니다하지만 난 (온 - 클릭) 이벤트에 반전을 수행하고 열 페이지를 드래그합니다 그것. – Reham