Skip to content

Protocol-less images doesn't fade in #8

Description

@rexxars

I'm not quite sure what the intention was with the first part of this line:

if(!src.match(/http/) || typeof window === 'undefined') opacity = 1

Basically that means you won't get fading images for:

  • Relative URLs (<LegitImage src="foo.jpg" />)
  • Protocol-less URLs (<LegitImage src="//domain.com/foo.jpg" />)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions