wip
This commit is contained in:
@@ -262,12 +262,6 @@
|
|||||||
transform: rotate(-90deg);
|
transform: rotate(-90deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.section--preview.horizontal img {
|
|
||||||
width: 90vw;
|
|
||||||
height: 90vh;
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.section--switch .section__intro{
|
.section--switch .section__intro{
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,26 +12,26 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function() {
|
// $(function() {
|
||||||
$(window).on('resize', function(e) {
|
// $(window).on('resize', function(e) {
|
||||||
if (screen.width < screen.height){
|
// if (screen.width < screen.height){
|
||||||
$('.section--preview').addClass('horizontal');
|
// $('.section--preview').addClass('horizontal');
|
||||||
}else{
|
// }else{
|
||||||
$('.section--preview').removeClass('horizontal');
|
// $('.section--preview').removeClass('horizontal');
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
})
|
// })
|
||||||
|
|
||||||
init();
|
init();
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
let state = 0;
|
let state = 0;
|
||||||
|
|
||||||
if (screen.width < screen.height){
|
// if (screen.width < screen.height){
|
||||||
$('.section--preview').addClass('horizontal');
|
// $('.section--preview').addClass('horizontal');
|
||||||
}else{
|
// }else{
|
||||||
$('.section--preview').removeClass('horizontal');
|
// $('.section--preview').removeClass('horizontal');
|
||||||
}
|
// }
|
||||||
|
|
||||||
$('.js-prev-slide').click(function() {
|
$('.js-prev-slide').click(function() {
|
||||||
if(state - 1 == -1){state = 2;}else{state = state - 1;}
|
if(state - 1 == -1){state = 2;}else{state = state - 1;}
|
||||||
|
|||||||
Reference in New Issue
Block a user