Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. $(document).ready(function() {
  2.  
  3. var projectsSection = $('#projects'),
  4. projectCard = $('.project-card');
  5.  
  6. function projectsFitText() {
  7. projectCard.fitText(4, {
  8. minFontSize: '10px',
  9. maxFontSize: '18px'
  10. });
  11. }
  12.  
  13. var mixer = mixitup(projectsSection, {
  14. animation: {
  15. enable: true,
  16. duration: 400,
  17. nudge: false,
  18. reverseOut: true,
  19. effects: 'fade scale(0.5)',
  20. animateResizeTargets: true,
  21. animateResizeContainer: true
  22. },
  23. callbacks: {
  24. onMixEnd: function() {
  25. projectsFitText();
  26. }
  27. },
  28. pagination: {
  29. limit: 9,
  30. maintainActivePage: true,
  31. loop: true,
  32. hidePageListIfSinglePage: true
  33. }
  34. });
  35.  
  36. projectsFitText();
  37.  
  38. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement