Coder Social home page Coder Social logo

jquery.animate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

jquery.animate's Issues

Styles arent cleared in SlideDown if div is already slidedDown.

Hello!

There is a issue with the "SlideDown" function. In the original JQuery behavior all styles get cleared after the animation has finished. In your Plugin the styles are still applied.

Original: https://jsfiddle.net/jfkrhz67/3/
Plugin: https://jsfiddle.net/jfkrhz67/4/
(check the console output)

I figured out this happens only if the target div is already slidedDown if you call the function. If you call "slideUp(0)" before, this bug doesnt seems to appear.

Please fix this anyway for the same behaviors between your plugin and original jquery.

Best regards,
Sora

contact

Hi baijunjie, how can I contact you private?
Please remove that issue

Doesnt work with slide toggle

Cant use $(element).slideToggle(500) with this lib.
This library is really cool, I'd like it to use it...

I hope you can fix this, because this function is really important! :)

Best regards,
Sora

Incorrect size calculation with "toggle" and "show" values

Hello!

Your height calculation of the height which shall be applied on a "toggle" command (e.g. slideToggle) is slightly incorrect. You have to apply "display: block; overflow: hidden" style before you actually calculate the value.

I've fixed that like this in line 945:

old:

var inlineStyleValue = $self[0].style[p],
	originalValue = $self.css(p, '').css(p);
$self.css(p, inlineStyleValue);

new:

var isBox = (p === 'height' || p === 'width');
var inlineStyleValue = $self[0].style[p];
if(isBox)
	$self.css({ 'overflow' : 'hidden', 'display' : 'block' });

var originalValue = $self.css(p, '').css(p);

if(isBox)
	$self.css({ 'overflow' : '', 'display' : '' });
$self.css(p, inlineStyleValue);

Best regards,
Sora

Doesn't read initial CSS Transform value correctly (maybe other properties are affected too.)

Hello!

There is a issue with the css hook. If you specify in CSS your transform: "transform: translate(100%, 0)" and then read it "$().css('x')" it will write "0" but it should be "100%". If you set the value in JS the value is read correctly. Because of this issue animations doesnt work properly if you have such rules in your CSS.

Reproduction: https://jsfiddle.net/jfkrhz67/
(Please read the console.)

Please try your best to fix this as fast as possible :)

Best regards,
Sora

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.