W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

Re: [csswg-drafts] [css-values] [css-fonts-4] Native interpolation function in CSS

From: Manuel von Gebhardi via GitHub <sysbot+gh@w3.org>
Date: Thu, 25 May 2017 20:26:06 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-304114557-1495743964-sysbot+gh@w3.org>
I just got directed here and thought it might be helpful to share two functions I did in SASS a while ago. (which do translate to plain css calc syntax)

@function interpol($min_window, $min_value, $max_window, $max_value)

@mixin interpolm($prop, $min_window, $min_value, $min_limit, $max_window, $max_value, $max_limit ) 

the actual example with the whole code: https://codepen.io/Manuel87/pen/GqzXdV

PS: @geelen .. the slider stuff looks interesting! :)

-- 
GitHub Notification of comment by Manuel87
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/581#issuecomment-304114557 using your GitHub account
Received on Thursday, 25 May 2017 20:26:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 10:12:54 UTC