Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a reflection effects to images #61

Open
lexoyo opened this issue Feb 1, 2014 · 1 comment
Open

add a reflection effects to images #61

lexoyo opened this issue Feb 1, 2014 · 1 comment
Assignees
Labels

Comments

@lexoyo
Copy link
Member

lexoyo commented Feb 1, 2014

About

Note: his widget is made with the reflection.js script

Here is how reflection effect looks like
reflection

Use

//////////////////////////////////////////
// silex reflection widget
document.write('<script type="text/javascript" src="reflection.js"></'+'script>');
$(function(){
    console.log('reflect');
    $(".reflect img").reflect().on('load', function(){
        // let the reflection apear
        $(".reflect div").width('100%').height('100%').css('overflow', 'visible');  
        // restore silex setting for the image element 
        $(this).width('100%').height('100%');  
    });
});
//////////////////////////////////////////
  • enter the apollo mode (tool menu)
  • select each image which you want to have a reflection effect and add the css class 'reflect' to it (in the text field bellow "CSS classes" in the properties)
@lexoyo lexoyo closed this as completed Feb 10, 2014
@lexoyo lexoyo reopened this Feb 10, 2014
@lexoyo lexoyo added the ready label Mar 20, 2014
@lexoyo lexoyo self-assigned this Mar 20, 2014
@lexoyo lexoyo added sticky and removed ready labels Mar 20, 2014
@BaguetteAgile
Copy link

@lexoyo

Bonjour Alex, le lien de téléchargement n'est plus valide.
Si possible faire le nécessaire . D'avance Merci.

Baguette Agile

@lexoyo lexoyo removed the sticky label Apr 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants