Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Anyone know how I could achieve this?

Featured Replies

Hi,

 

I am trying to create a button that would stretch out on hover. When the button is static it would look like this:

 

post-36787-0-82606400-1336140391_thumb.jpg

 

On hover, I would like my button to look like this:

 

post-36787-0-77007800-1336140428_thumb.jpg

 

Does anyone know to achieve this using jQuery, where on hover it would actually stretch out rather then jump between two images?

Edited by madbytes

Modifing this should do the trick.

 

Use the basic principles, but rather than navigation, use buttons :)

Thanks Guys, but i am not able to open this URL, i have tried on Chrome and Firefox..

any other URL you can suggest.

 

thanks

Surely you could use plain old CSS to do this?

 

Something like...

<a href="http://www.twitter.com/" title="My Twitter link" class="twitter"></a>

a.twitter {
display: block; 
width: 16px; 
height: 16px; 
background: url(twitter-small.png) no-repeat; 
transition: width 2s;
}

a.twitter:hover, a.twitter:focus {
width: 100px; 
background: url(twitter-large.png) no-repeat; 
}

Surely you could use plain old CSS to do this?

 

Something like...

<a href="http://www.twitter.com/" title="My Twitter link" class="twitter"></a>

a.twitter {
display: block; 
width: 16px; 
height: 16px; 
background: url(twitter-small.png) no-repeat; 
transition: width 2s;
}

a.twitter:hover, a.twitter:focus {
width: 100px; 
background: url(twitter-large.png) no-repeat; 
}

 

 

With that code, you're going to get a "flicker" as the background image changes first time.

 

Best to use one image, and use border-radius to make it look rounded on all sides when shrunk IMO.

You could, and I'd be tempted to. It would be a non-IE enhancement though.

 

 

I'm sure there's a Polyfill out there for transitions for IE.

 

If not, I would recommend using Modernizr to check (I think it can check for transitions support) then load your normal jQuery animation for non-CSS3 transition supporting browsers - but still using CSS3 for those that support it.

Edited by brightonmike

  • 5 weeks later...

What d'you mean, you can't open the URL - what happens?

 

Apologies my mistake, i can see the page now..

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.