Coder Social home page Coder Social logo

flip-jquery's People

Contributors

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

flip-jquery's Issues

Problems with multiple flips

If you try to flip more than one item using a class selector it will revert back to the original item.

Any ideas how to fix it?

Stop the Animation

Is it somehow possible to stop the animation and jump straight to another direction or another animation ?

thanx in advance
best regards

Examples

Hello - I would really like to use your plug-in, but it's really lacking in terms of examples. It would be really helpful if you included a sample file in the download package that showed how to flip standard html content, not just basic text.

Thanks!

SVG support

Hi all,
I try to use the Flip function on a SVG object.
The effect is running but the SVG does not appear during the transformation (only the rectangle DIV containing the SVG).
Is there a way to fix that issue ?

Thx

Compatible with Jquery Masonry?

Hi guys,

Just a quick question, is this library compatible with jQuery Masonry? I am having a really tough time integrating the two libraries together to produce some magic. Has anyone tried that?

Events Triggered Incorrectly

$(".toFlip").mouseenter(function(){
    console.log("mouseenter");
        $(this).flip();
    }
}).mouseleave(function(){
    console.log("mouseleave");
    $(this).revertFlip();
});

Additional mouse leave events gets triggered (from clone objects I believe) when object is flipping.

Revert onEnd

How can I call onEnd function, but only after revertFlip and not before?

No option to configure the "waist" size

The waist size is hard-coded at 25%. For a current project the client wants the flip to be less pronounced, so the plugin should allow the waist size to be config driven.

jQuery 1.11.1 in Wordpress 4.0 breaks Flip

Objects still switch place, but no transition is seen.

Wordpress 4 ships with jQuery 1.11.1, and manually rolling it back to 1.11.0 fixes the issue… I'm still troubleshooting...

[enhancement] Add missing bower.json.

Hey, maintainer(s) of roncioso/Flip-jQuery!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library roncioso/Flip-jQuery is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "roncioso/Flip-jQuery",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

Can't stop Propagation

I placed a "Text" box item in the container, and wanted to enter something, as soon as I clicked on "Text box" or the "Submit" button, it back flipped again. Here is the code that I wrote:

html file

<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sponsor Flip Wall With jQuery &amp; CSS | Tutorialzine demo</title>

<link rel="stylesheet" type="text/css" href="styles.css" />
<link  type="text/css"  href="http://maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="jquery.flip.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="myjs.js"></script>

</head>

<body>
        <div id="clearfix" style="height:50px; width: 400px; background-color:red">
        </div>

</body>
</html>

myjs.js file

$( document ).ready(function() {
                var $row =$('<div/>', {
                    class   : 'row'
                });
                var $col =$('<div/>', {
                    class   : 'col-xs-6'
                });

                var $content =$('<div/>', {
                    class   : 'input-group'
                });

                var $input=$('<input/>', {
                    type        : 'text',
                    class       : 'form-control',
                    placeholder : 'WI 1234567890'
                });

                var $span =$('<span/>', {
                    class   : 'input-group-btn'
                });

                var $button =$('<button/>', {
                    class   : 'btn btn-primary',
                    type        : 'button',
                    text        : 'Go'
                });
                $span.append($button);
                $content.append($input);
                $content.append($span);
                $col.append($content);
                $row.append($col);
                $("#clearfix").append($row.hide());

                $("input").click(function(event){
                    alert('click');
                    return false;
                });
                $content.click(function(event){
                    alert('click');
                    return false;
                });

                var clicked=false;
                $("#clearfix").click(function(event){
                        if(clicked===false){                
                            $("#clearfix").flip({
                                direction: "lr",
                                color: "red",
                                content: $row
                            });

                            clicked=true;
                        }
                        else{
                            clicked=false;
                            $("#clearfix").revertFlip();
                        }
                    //event.stopPropagation();
                    return false;
                });
});

Using Flip! on <li> causes problems

When I use this script on list items (

  • ), the first animation works fine, but when trying to call another animation on the same element, the flip fails.

  • Does Flip really need JQuery UI?

    Hi,

    I ran the code of Flip without using the Jquery UI, it worked, I just want to know if without using the Jquery UI, there will be no problem.

    Do we really need to have Jquery UI?

    Thanks :-)

    Keeping heights equals

    Hi!
    Thanks for this great plugin!
    I have a bunch of flip divs with not the same height, How can I set Flip! to keep the same height between the front and back div (without css)?

    BC

    Flip positioned incorrectly when in RTL

    It seems that when the page direction is RTL, for example with Hebrew, the flip effect doesn't appear in the right place. This affects Chrome and IE but not Firefox. As soon as I change the page CSS to LTR it works again.

    Any idea how this can be fixed?

    Removes previous functionality

    Lovely little plugin but unfortunately its messing with my sites functionality.
    I have various buttons and events happening on my page. Once .flip() is called that functionality is lost unless it is wrapped in the onEnd: function.
    Similarly the revertFlip() function seems to remove the functionality of the original content.

    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.