civictechro/website-alba-iulia-smart-city

View on GitHub
site/web/app/themes/smart-city/resources/assets/scripts/routes/home.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function finalize has 108 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  finalize() {
    let is_logo_animating = false;
    // JavaScript to be fired on the home page
    $(document).scroll(function() {
      if($(this).scrollTop() >= $('#svg2').position().top - $('#svg2').height()){

    Function animate_logo has 58 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function animate_logo() {
          let timeline = anime.timeline();
    
          timeline
            .add({

      There are no issues that match your filters.

      Category
      Status