Code Monkey home page Code Monkey logo

creativepure's Issues

loading, waiting, completed animations

With the advent of Flow Router and Template level subscriptions it would be nice to have a clean way to indicate loading in a specific region. Additionally when the loading is finished the loading should not just vanish but fade or even expand to the new content. If I find an example of the problem or a solution I will post it here.

Long shadow

// Stylus version of SCSS mixin from http://codepen.io/awesomephant/pen/mAxHz

long-shadow(type = 'box', base-color = rgba(#000, .2), length = 100, fadeout = true, skew = false, direction = 'right')
    shadow = ''

    if !skew || type == 'text'

        if direction == 'right'
            for i in (0..length - 1)
                shadow = shadow + i + 'px ' + i + 'px 0 ' + base-color + ','

        else if direction == 'left'

            for i in (0..length - 1)
                shadow = shadow + i * -1 + 'px ' + i + 'px 0 ' + base-color + ','

    if fadeout
        for i in (0..length - 1)

            if type == 'text' || !skew

                if direction == 'right'
                    shadow = shadow + i + 'px ' + i + 'px 0 ' + rgba(base-color, 1 - i / length) + ','
                else if direction == 'left'
                    shadow = shadow + i * -1 + 'px ' + i + 'px 0 ' + rgba(base-color, 1 - i / length) + ','

            else if type == 'box' && skew

                if direction == 'right'
                    shadow = shadow + i + 'px ' + i + 'px 0 ' + i * .2 + 'px ' + rgba(base-color, 1 - i / length) + ','
                else if direction == 'left'
                    shadow = shadow + i * -1 + 'px ' + i + 'px 0 ' + i * .2 + 'px ' + rgba(base-color, 1 - i / length) + ','

    shadow = shadow + length + 'px ' + length + 'px 0 ' + rgba(base-color, 0)

    if fadeout == false

        if skew == true && type == 'box'

            for i in (0..length - 1)
                shadow = shadow + i + 'px ' + i + 'px 0 ' + i * .1 + 'px ' + base-color + ','

        shadow = shadow + length + 'px ' + length + 'px 0 ' + rgba(0, 0, 0, 0)

    shadow = unquote(shadow)

    if type == 'box'
        box-shadow: shadow

    if type == 'text'
        text-shadow: shadow

Range input

See: http://tympanus.net/Development/SliderPagination/

Default html input type='range' is really bad with less then 10 options. I can only describe it as 'clicking' or 'sticking'.

The example has an issue of being 2 clicks. If users want to hide the range they can with custom logic. By default the range should be active.

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.