Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

WIP: [RFC] JDK-8211038: Add css fadein/fadeout functions. #211

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on Sep 23, 2018

  1. Add css fadein/fadeout functions.

    fadein
    fadein( <color> , <number>% )
    
    The fadein function takes a color and computes a more opaque version of that color.
    The second parameter is the opacity, ranging from 0% to 100%. Has no effect on
    fully opaque colors.
    
    Examples:
    
    fadein(rgba(35, 70, 112, 0.8), 10%) => rgba(35, 70, 112, 0.88)
    fadein(rgba(35, 70, 112, 0), 100%) => rgba(35, 70, 112) = rgb(35, 70, 112)
    
    fadeout
    fadeout( <color>, <number>% )
    
    The fadeout functions takes a color and computes a more transparent version of that
    color. The second parameter is the transparency, ranging from 0% to 100%. Has no effect
    on fully transparent colors.
    
    Examples:
    
    fadeout(rgba(35, 70, 112, 0.8), 10%) => rgba(35, 70, 112, 0.72)
    fadeout(rgba(35, 70, 122), 30%) => rgba(35, 70, 122, 0.7)
    fadeout(rgb(35, 70, 112), 100%) => rgba(35, 70, 112, 0)
    brcolow committed Sep 23, 2018
    Configuration menu
    Copy the full SHA
    655922e View commit details
    Browse the repository at this point in the history