Skip to content

Inconsistent behavior for iOS and Android #9

@conilas

Description

@conilas

Hi there!

I really liked the lib's idea. Just saw it on twitter and already am trying to use it!

But I've found an issue (or undocumented behavior, maybe) which is the following:

I have a class (.deviceList) in my CSS. Then. I have, say, 10 elements listed with that same class, one beneath the other (I'll attach an image).

Then, if I do something like:

  shiny('.deviceList',{
    // type of shiny to render,
    // 'background', 'border', or 'text'
    type: 'background',
    gradient: {

        // type of gradient
        // 'linear' or 'radial'
        type: 'radial',

        // angle of gradient when type is linear
        angle: '110deg',

        // flip axis movement
        flip: {
            x: true,
            y: true
        },

        // colors to use
        colors: [
            // offset, color, opacity
            // ! don't pass rgba or hsla colors, supply the opacity seperately
            [0, '#fff', 0.5], // white at 0%
            [0.5, '#000000', 1], // to fully transparent white at 100%
        ]

    },

    // optional pattern fill
    pattern: {
        type: 'noise', // only 'noise' for now
        opacity: .5
    }

On Android, each of those cards will have a radial effect.

On iOS, I have one radial effect spread through all the cards.

On iOS, whenever I move the screen, (i'll call it an "effect ball") the effect ball will go from one card to the other; on Android, each card has one effect ball!

I don't really know if this is some expected behavior or if it is a bug. Just wanted to let the team know!

Iphone

index-iphone

Android

index-android

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions