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

Apply fa-spin to :before pseudoelement #5082

Closed
chderen opened this issue Nov 27, 2014 · 8 comments
Closed

Apply fa-spin to :before pseudoelement #5082

chderen opened this issue Nov 27, 2014 · 8 comments
Labels

Comments

@chderen
Copy link

chderen commented Nov 27, 2014

Hi,

should the spin apply only on the icon it's self?
i mean use .fa-spin:before instead of .fa-spin.

Thanks

@tagliala
Copy link
Member

Are you asking this because of: http://jsfiddle.net/tagliala/77re29ct/26/ ?

Normally you should not add text in the same tag of icon, but if you are using semantic html let's talk about this

@chderen
Copy link
Author

chderen commented Nov 29, 2014

@tagliala
Copy link
Member

tagliala commented Dec 1, 2014

hmmm it makes sense.

Don't know what to do. I will plan this for 5.0.0 so dave will eventually take a look

@tagliala tagliala added this to the 5.0.0 milestone Dec 1, 2014
@tagliala tagliala changed the title .fa-spin:before Apply fa-spin to :before pseudoelement Dec 1, 2014
@chderen
Copy link
Author

chderen commented Dec 2, 2014

Thank you

On Tue Dec 02 2014 at 00:19:35 Geremia Taglialatela <
notifications@github.com> wrote:

hmmm it makes sense.

Don't know what to do. I will plan this for 5.0.0 so dave will eventually
take a look


Reply to this email directly or view it on GitHub
#5082 (comment)
.

@tagliala
Copy link
Member

tagliala commented Dec 2, 2014

We were forgetting about stacked icons: http://jsfiddle.net/tagliala/77re29ct/28/

I suppose that it is the main reason.

@chderen
Copy link
Author

chderen commented Dec 2, 2014

That can be achieved by
.fa-spin > :before
or
.fa-spin.fa-stack > :before

http://jsfiddle.net/77re29ct/31/

@rjgotten
Copy link

rjgotten commented Dec 8, 2014

I suppose that it is the main reason.

Not all browsers support CSS animations on generated content pseudo-elements. In particular; older versions of Webkit that many Android phones still have installed as Android browser.

I'd think that would be the main reason...

@tagliala
Copy link
Member

tagliala commented Dec 8, 2014

@rjgotten thanks

Moreover,

.fa-spin.fa-stack > :before

will add multiple animations

I should suggest to use a wrap tag in this case

http://jsfiddle.net/xq1m2rLk/2/

Closing here

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

4 participants