Giter Club home page Giter Club logo

Comments (11)

objectivehtml avatar objectivehtml commented on June 14, 2024

The ideal scenario for me would be to have a theme's api. I would be nice to include other flip clock styles similar to this one. http://codepen.io/rikschennink/details/lyuaf

The only other CSS I know about is what I used on http://flipclockjs.com/. It's semi-responsive in that if you scale your browser window down it does what you want. I didn't write all the CSS, as it came from another CodePen. The new CSS file is as easy as it has ever been, somebody spent some time and cleaned it up and even created as SASS file. I don't use SASS yet personally, so that file is a little behind the compiled CSS so if somebody know how to update it, I am sure others would appreciate it.

from flipclock.

jdittrich avatar jdittrich commented on June 14, 2024

so that file is a little behind the compiled CSS

o.k., that explains a part of the trouble I had.

from flipclock.

kursor avatar kursor commented on June 14, 2024

Ok, So it seems if you try to scale by .5 or by .55 or any other odd number the flips move a little bit (although they do in firefox anyway)

I found if i reduced the width below the original size of clock it messed up.

Fudged it a little by having negative margin, but might help someone get it going or improve on scaling.

Preview will be at kurtstrong.com homepage for a while and then will be moved inside projects, titled 'embarrasing'.

...Here is my css for my page...

.clock {
position: relative !important;
padding-top: 0px;
margin-left: -194px;
height:100px;
width: 800px;
/zoom: .6;/
transform: scale(.54);
-ms-transform: scale(.54); /* IE 9 /
-webkit-transform: scale(.54); /
Safari and Chrome /
-o-transform: scale(.54); /
Opera /
-moz-transform: scale(.54); /
Firefox */

... In the flipclock.css file i think you may need to have this on...

.flip-clock-wrapper {
position: relative;
}

from flipclock.

ljcp avatar ljcp commented on June 14, 2024

I just use the library to add two countdown clocks with position absolute and with scaling binding on browser resize and I found a jumping issue so to fix it I just added a greater z-index in .flip-clock-wrapper ul li.flip-clock-active {
z-index: 999999; }

also i use the transform scale successfully with the transform-origin:0 0; to keep the same x and y while scaling

from flipclock.

dayaki avatar dayaki commented on June 14, 2024

anyone got the scaling working?

from flipclock.

ljcp avatar ljcp commented on June 14, 2024

yes , just use the css transform feature to scaling

from flipclock.

flow-phys avatar flow-phys commented on June 14, 2024

@ljcp, thanks for the post. Could you be more specific about how you got this working? A working example would be extremely helpful. Thanks either way.

from flipclock.

JobaDiniz avatar JobaDiniz commented on June 14, 2024

@flow-phys something like they already posted:

.clock {
    transform-origin: 0 0;
    transform: scale(.25);
    -ms-transform: scale(.25);
    -webkit-transform-origin: 0 0;
    -webkit-transform: scale(.25);
    -o-transform-origin: 0 0;
    -o-transform: scale(.25);
    -moz-transform-origin: 0 0;
    -moz-transform: scale(.25);
}

Then

<div class="clock"></div>
<script type="text/javascript">
        $(function () {
            //debugger;
            var clock = $('.clock').FlipClock(3000, {
                countdown: true,
                clockFace: 'MinuteCounter'
            });
        });

from flipclock.

brianespinosa avatar brianespinosa commented on June 14, 2024

Possibly close this issue and reference to #161 for responsive styles? Ideally the clock face should not need to use css transforms to scale. This will also require changing the way all components of the clock are sized.

from flipclock.

ion99 avatar ion99 commented on June 14, 2024

Thank you!

from flipclock.

acorreaf avatar acorreaf commented on June 14, 2024

https://codepen.io/rikschennink/details/lyuaf

from flipclock.

Related Issues (20)

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.