GithubHelp home page GithubHelp logo

enter-animation's People

Contributors

afc163 avatar jljsj33 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

enter-animation's Issues

Css.js 代码65行有个bug

Css.js 代码有个bug

  • 在safari 5.17 浏览器上,会报异常
    
    removeStyle(m, style, oneBool) {
    //删除style;
    if (!m) {
      return false;
    }
    if (typeof style === 'object') {
      for (var _s in style) {
        m.style[_s] = '';
      }
    } else {
      var cArr = style.trim().split(';');
      cArr.map(function (arr) {
        if (arr && arr !== '') {
          var carr = m.style.cssText.split(';'),
            cOne = arr.split(':')[0].replace(/\s/g, ''),
            cTow = arr.split(':')[1] ? arr.split(':')[1].replace(/\s/g, '') : '';
          carr.map(function (_arr) {
            if (_arr && _arr !== '') {
              var tcOne = _arr.split(':')[0].replace(/\s/g, ''),
               tcTow = _arr.split(':')[1].replace(/\s/g, ''); 
              if (oneBool && tcOne.indexOf(cOne) >= 0) {
                m.style[arr.split(':')[0]] = '';
              } else if (tcOne.indexOf(cOne) >= 0 && tcTow === cTow) {
                m.style[arr.split(':')[0]] = '';
              }
            }
          });
        }
      });
    }
    

什么时候会执行动画呢?

是 change key? 还是每次被调用render方法的时候都会执行动画? 不太清楚机制,用起来有一些问题,总是在不应该触发动画的时候触发

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.