Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var projectsSection = $('#projects'),
- projectCard = $('.project-card');
- function projectsFitText() {
- projectCard.fitText(4, {
- minFontSize: '10px',
- maxFontSize: '18px'
- });
- }
- var mixer = mixitup(projectsSection, {
- animation: {
- enable: true,
- duration: 400,
- nudge: false,
- reverseOut: true,
- effects: 'fade scale(0.5)',
- animateResizeTargets: true,
- animateResizeContainer: true
- },
- callbacks: {
- onMixEnd: function() {
- projectsFitText();
- }
- },
- pagination: {
- limit: 9,
- maintainActivePage: true,
- loop: true,
- hidePageListIfSinglePage: true
- }
- });
- projectsFitText();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement