Author: bubesh

What is parallax scrolling

Parallax scrolling, also known as “Asymmetrical scrolling”, is a technique in computer graphics and web design, where background images is moved at a different speed than the foreground content while scrolling, creating an illusion of depth in a 2D scene and adding to the immersion.

Below you can find the CSS and HTML on how to create parallax effectCSS

Some mobile devices might have problem with “background-attachment: fixed”. However, you can use media queries to turn off the parallax effect for mobile devices by overriding with “background-attachment: scroll:.
You can adjust the height value of absolute positioned content in mobile devices using media queries.

You might come across a way to check the details about an image for its URL, ALT text, file size and dimension by opening up the developer tool and checking those details and to save an image to check its file size but now you can simply install this chrome extension and you can find all those by just hovering over the respective images.

The below details of an image are shown

shows the file url/path and a link to open it in a new window

shows original image width and height

shows actual image width and height used

shows ALT text of an image if available

shows actual file size of the image(doesn’t work for local image path)

How to use

To use the extension you just need to click on icon in chrome and the infobox appears. Now you can hover over any images and the respective details gets updated in the infobox. To close the picinfo dialog box you can either click on the “Close(X)” icon or click the extension icon.

How to enable plugin for local files

If you wish for extension to work on “file:///” URLs you will need to allow extension access by checking “Allow access to file URLs” in the Extension Manager.

Notes:

The extension can work only when you hover over the image, for example, some carousal/sliders will have arrow elements above image and you will not be able to hover directly on the image. I know that doesn’t mean much to someone who is not a web developer, but it’s a technical limitation of HTML and browsers.

Some information like image file size and date are returned from the server, this information depends on the server setup and can sometimes be wrong, which is especially true for the date field.

The image format that works are .jpg, .png, .gif, .svg(used within image tag) and it doesn’t show any info if SVG tag is used.

A moderate level responsive newsletter with its focus on longer copy and image-free content areas, this is an ideal layout for B2B companies and their weekly or monthly round-ups of news, information and content. Also great for B2B lead nurture campaigns and B2C content-heavy newsletters.
It’s a tested copy across various email clients like gmail, yahoo, outlook and devices that you can just copy/download and use as per your needs.

Forms are one of the most important parts of the webpage that needs to be clean and have great user experience at the same time.

In an effort to make forms look nicer visually, designers and developers have sacrificed usability by replacing field labels with placeholders.

Luckily, now we can have the concept of placeholder and the label for user experience by floating the label when the user starts typing( Thanks to Matt D Smith).

Approach for float label

The way this concept(float label/google material design form) has been handled is that the CSS “focus” property has been used to move the label up when it’s been focused, but with JavaScript the label stays top if the user inputs some data.
You can do the float label only via CSS or with the help of little JavaScript. Below demo uses JS(jquery).

The reason behind using script for checking whether data is there or not is to make it work even in older browser including IE lower versions and also if you need CSS alone, the “required” attribute has to been given to the input field which in turn the error pop-up shows if user enter wrong data and it messes with your custom error style if used any. If you like to have the default error pop-up you can go with the CSS only way which I will be mentioning after the JS way.

CSS only
To use CSS only without the help of Javascript you need to use “valid” css property

.adiptxt:valid + label{
font-size: 12px;
top: 12px;
color: #6e827b;
}

Note:The input tag must have “required” attribute so that “valid” property works.

Chrome browser autocomplete fix

You will encounter this overlap issue if you don’t wish to off the autocomplete for the input tag(eg. login form).
In that case you can add the below script along with the script mentioned above in the demo to overcome the issue by checking the value onload and also onchange of the other elements.

Need subtitles for your movies, tired of searching it in different websites to find the exact one which sync’s with your movies correctly. Now you can download all the subs directly using your favourite VLC player.
Below are the steps on how to search and download the subs with VLC player

Step 3: In the VLSub(download subtitle) dialog box you can either search by name or search by hash. Select the required file in the search result based on your movie and choose “Download selection”. The sub(.srt file) will be downloaded and loaded to your player.

And that’s it sit back and enjoy your movie 🙂

Note: If you didn’t find any option as mentioned above, kindly update your VLC player to the latest version(click here).
You can also install an addon called “vlsub” separately to VLC and use the same steps to download but it’s easy to update your player as “vlsub” is pre-installed in newer versions.

Common support to all browsers(including lower versions of IE)
The idea deals by using a span/div tag and styling it as per our theme to look like a dropdown and use a default select dropdown and visually hiding it behind the span by using CSS “opacity” property. By using this “opacity” property, we hide the select dropdown but however clicking that position it reveals the options irrespective of the opacity property, so we are using this as an advantage. By selecting a particular option we get that value/text of that selected option via script and show it in the span through small piece of script.