Code Monkey home page Code Monkey logo

moofx's People

Contributors

arian avatar cduruk avatar chiel avatar kamicane avatar n3o77 avatar phloe avatar w00fz avatar

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moofx's Issues

Chrome 26 (currently beta) breaks moofx

Uncaught TypeError: Cannot call method 'splice' of null moofx.js:583
remove3 moofx.js:583
prime.resetCSS moofx.js:657
prime.setTransitionCSS moofx.js:619
CSSAnimation.bSetTransitionCSS moofx.js:593
iterator

Around line 583.

Not quite sure which version is this - generated file shows two versions:

Screen Shot 2013-02-28 at 9 59 20 PM

Integer duration option issue. Is README.md outdated?

I was just playing with moofx when I noticed that the duration option do not work if an integer number (intended as milliseconds) is given.

moofx(el).animate('height', 300, { duration: 10000 }); // Sets to 300px immediately
moofx(el).animate('height', 300, { duration: '10s' }); // Works

In README.md lots of examples shows an integer duration option to specify durations in ms.

forEach is not a function

I get an error with FireFox 25 and in chrome.

forEach is not a function
on line 393

Need i some dependencies? Or must i include a polyfill for forEach?
Thanks for help.

Stop animation

I can't seem to find a way on how to properly interrupt an animation that is currently running.
Is there any way at all of doing this?

getters.border returns null

See https://github.com/kamicane/moofx/blob/master/lib/browser.js#L317

This makes sense if you want to get the border property. However when animating the border, when one border (for example the top) is different, it will return null which causes an error here: https://github.com/kamicane/moofx/blob/master/lib/browser.js#L567 (because null doesn't have a replace method).

I think when it's detected that the borders are different, it should change

{
     border: '1px solid red'
}
// into
{
     borderTop: '1px solid red',
     borderRight: '1px solid red',
     borderBottom: '1px solid red',
     borderLeft: '1px solid red'
}

so all borders do animate to the desired value, and it would prevent the error.

resetCSS errors when element isn't in the DOM

It was a bit hard to find out what was going on, but this code makes moofx throw errors:

moofx(document.createElement('div')).animate({
    border: '3px solid #333'
})
Uncaught TypeError: Cannot call method 'push' of null 

because equations in the resetCSS method is null, which is because cts.getPropertyValue('WebkitTimingFunction') in the compute function returns null.

I know it's a bit weird to animate elements that are not in the DOM yet.. but still, if you don't know what's going on, it's pretty difficult to find out what's going wrong.. Maybe let it fail silently is better.

Generated file is indicating two different versions

Cloned from the repo, and after generating a single file the versions state:

/*

---
provides: moofx
version: 3.0.14

And later in the code:

moofx.version = "3.0.11-dev";

Looking at the commit list, 3.0.14 is the correct one.

Error with distribute

Hi,

Before all, sorry for my english ;-)!!

I've download the last version today. When i run the command ./distribute, i've this error on my terminal :

events.js:48
throw arguments[1]; // Unhandled 'error' event

Error: No Modules Required

I am looking for a solution for 2 hours and i find nothing.
I count on you to put me on the right direction.

Thanks a lot !!

Firefox 3.6 - Exception... "Not enough arguments"

uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: https://raw.github.com/kamicane/moofx/master/moofx.js :: anonymous :: line 185" data: no]

I've added null as the second param for this: var cts = getComputedStyle(node, null);

When I tested that the error was gone but the animations did not work.

http://jsfiddle.net/subhaze/vPPKw/

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.