Friday, April 13, 2018

WebGL Distortion Hover Effects

Today we’d like to share a little hover effect library with you. The effect goes as follows: when hovering an image, we’ll use a displacement image to transition to another image. Using different displacement images, we can create a variety of looks. The main idea behind this little library is to recreate an effect similar to what we have done previously, but with broader support, better performance and that is easier to customize.

The post WebGL Distortion Hover Effects appeared first on Best jQuery.


by Admin via Best jQuery

Getting Started With the Mojs Animation Library: The Shape Module

In the previous tutorial, we used mojs to animate different HTML elements on a webpage. We used the library to mainly animate div elements which looked like squares or circles. However, you can use the Html module to animate all kinds of elements like images or headings. If you actually intend to animate basic shapes using mojs, you should probably use the Shape module from the library.

The Shape module allows you to create basic shapes in the DOM using SVG. All you have to do is specify the type of shape that you want to create, and mojs will take care of the rest. This module also allows you to animate different shapes that you create. 

In this tutorial, we will cover the basics of the Shape module and how you can use it to create different shapes and animate them.

Creating Shapes in Mojs

You need to instantiate a mojs Shape object in order to create different shapes. This object will accept different parameters which can be used to control the color, size, angle, etc. of the shapes that you create.

By default, any shape that you create will use the document body as its parent. You can specify any other element as its parent using the parent property. You can also assign a class to any shape that you create with the help of the className property. The library will not assign any default class if you skip this property.

Mojs has eight different shapes built in so that you can create them directly by setting a value for the shape property. You can set its value to circle to create circles, rect to create rectangles, and polygon to create polygons. You can also draw straight lines by setting the value of shape to be lines. The library will draw two perpendicular lines if the shape value is cross and a number of parallel lines if the shape is equal. Similarly, zigzag lines can be created by setting the property value to zigzag.

The shape object also has a points property which has different meanings for different shapes. It determines the total number of sides in a polygon and the total number of parallel lines in an equal shape. The points property can also be used to set the number of bends in a zigzag line.

As I mentioned earlier, mojs creates all these shapes using SVG. This means that the Shape object will also have some SVG specific properties to control the appearance of these shapes. You can set the fill color of a mojs shape using the fill property. When no color is specified, the library will use the deeppink color to fill the shape. Similarly, you can specify the stroke color for a shape using the stroke property. When no stroke color is specified, mojs keeps the stroke transparent. You can control the fill and stroke opacity for a shape using the fillOpacity and strokeOpacity properties. They can have any value between 0 and 1.

Mojs allows you to control other stroke-related properties of a shape as well. For instance, you can specify the pattern of dashes and gaps in a stroke path using the strokeDasharray property. This property accepts both strings and numbers as valid values. Its default value is zero, which means that the stroke will be a solid line. The width of a stroke can be specified using the strokeWidth property. All the strokes will be 2px wide by default. The shape of different lines at their end points can be specified using the strokeLinecap property. Valid values for strokeLinecap are butt, round, and square.

Any shape that you create is placed at the center of its parent element by default. This is because the left and right properties for a shape are set to 50% each. You can change the values of these properties to place the elements in different locations. Another way to control the position of a shape is with the help of the x and y properties. They determine how much a shape should be shifted in the horizontal and vertical direction respectively.

You can specify the radius of a shape using the radius property. This value is used to determine the size of a particular shape. You can also use radiusX and radiusY to specify the size of a shape in a particular direction. Another way of controlling the size of a shape is with the help of the scale property. The default value of scale is 1, but you can set it to any other number you like. You can also scale a shape in a particular direction using the scaleX and scaleY properties.

The origin of all these transformations of a shape is its center by default. For example, if you rotate any shape by specifying a value for the angle property, the shape will rotate around its center. If you want to rotate a shape around some other point, you can specify it using the origin property. This property accepts a string as its value. Setting it to '0% 0%' will rotate, scale or translate the shape around its top left corner. Similarly, setting it to '50% 0%' will rotate, scale or translate the shape around the center of its top edge.

You can use all these properties we just discussed to create a large variety of shapes. Here are a few examples:

The shapes created by the above code are shown in the CodePen demo below:

Animating Shapes in Mojs

You can animate almost all the properties of a shape that we discussed in the previous section. For instance, you can animate the number of points in a polygon by specifying different initial and final values. You can also animate the origin of a shape from '50% 50%' to any other value like '75% 75%'. Other properties like angle and scale behave just like they did in the Html module. 

The duration, delay and speed of different animations can be controlled using the duration, delay and speed properties respectively. The repeat property also works like it did in the Html module. You can set it to 0 if you want to play the animation only once. Similarly, you can set it to 3 to play the animation 4 times. All the easing values that were valid for the Html module are also valid for the Shape module.

The only difference between the animation capabilities of these two modules is that you cannot specify the animation parameters individually for the properties in the Shape module. All the properties that you are animating will have the same duration, delay, repetitions, etc.

Here is an example where we animate the x position, scale and angle of a circle:

One way to control the playback of different animations is by using the .then() method to specify a new set of properties to be animated after the first animation sequence has fully completed. You can give all animation properties new initial and final values inside .then(). Here is an example:

Final Thoughts

In this tutorial, we learned how to create different shapes using mojs and how to animate the properties of these shapes. 

The Shape module has all the animation capabilities of the Html module. The only difference is that the properties cannot be animated individually. They can only be animated as a group. You can also control the animation playback by using different methods to play, pause, stop and resume the animations at any point. I covered these methods in detail in the first tutorial of the series.

If you have any questions related to this tutorial, feel free to post a comment. In the next tutorial, you will learn about the ShapeSwirl and stagger modules in mojs.


by Monty Shokeen via Envato Tuts+ Code

Create a Conversational Interface for Android With Dialogflow

Predictive Analytics: How Marketers Can Improve Future Activities

Want your marketing to be more efficient? Wondering how predicting your marketing cycles can help? To explore how marketers can get started with predictive analytics, I interview Chris Penn. More About This Show The Social Media Marketing podcast is an on-demand talk radio show from Social Media Examiner. It’s designed to help busy marketers, business [...]

This post Predictive Analytics: How Marketers Can Improve Future Activities first appeared on Social Media Examiner.


by Michael Stelzner via

The Blue Heart of Europe

The fight for Europe’s last wild rivers.
by via Awwwards - Sites of the day

Thursday, April 12, 2018

5 Ways to Target Digital Display Campaigns Based on Consumer Intent - #infographic

The internet offers brands access to massive audiences making digital display campaigns a great option for reaching consumers on the web. For display ads to have maximum impact, brands need to reach the right audiences with the right messages at the right stage in the consumer buying journey.

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Web Desk via Digital Information World

The Visual Project Management Tool Built for Designers

This article was created in partnership with Monday.com. Thank you for supporting the partners who make SitePoint possible.

Do you feel like you're not making the best use out of your skills, money and effort while at work? Perhaps you're spending too much time on repetitive tasks like entering data into multiple systems or manually exchanging documents between members of your team. Fortunately, technology can help you get back control over your projects and do more with your day.

Team management is one of the core foundations of any successful business or freelance endeavor. In fact, it's safe to say that the ability to communicate clearly and transparently is one of the strongest leadership skills of all. However, without the right technology on your side, it will be much harder to build and maintain a healthy, teamwork-orientated environment.

Monday.com aims to change all that. A team management tool with a unique visual flair, it's suitable for teams of any size from two freelancers working together to teams of thousands scattered across the globe. Whether you're a freelance or you're running a startup or a Fortune 500 company, monday.com aims to empower users through powerful cloud-based collaboration, integrated communication tools and centralized control over project management.

## Empower a Global Workforce with Enhanced Mobility

The increasing ubiquity of the internet and mobile devices like smartphones and tablets have led to dramatic changes in the way people work. No longer restricted by the boundaries of the office desk, workers can now complete projects at home or get a head start on the day's work during the commute.

Monday.com is built with the modern workforce in mind. That's why it allows you to manage everything through a single, centralized system where project leaders can assign tasks to specific people and view project statuses in real time. It's the ultimate to-do list, project overview and task-management solution all wrapped into one. No longer is there any need to get bogged down in spreadsheets, whiteboards and an ever-expanding mountain of sticky notes.

With Monday.com, it doesn't matter where your team members are or what sort of devices they're using. You'll be able to keep them in the loop no matter what, thanks to the availability of apps for Android and iOS-powered smartphones and tablets.

That means much less time spent sending emails, organizing meetings and scheduling phone calls.

## Boost Productivity with Powerful Visual Tools

There's no doubt about it – technology is often complicated, and choosing the wrong software can make you less efficient than you were before. There's also the fact that modern businesses generate a whole lot of data during their routine tasks, project management included. It's the ability to make sense of all this data that lets you truly realize the maximum potential of your business.

Monday.com takes a visual approach to team management. With its intuitive design and striking visuals, you'll never have to worry about missing an important deadline again. Furthermore, its built-in collaborative tools help you communicate with your team in context by adding extra rows to boards and sending automatic alerts in real time. There's no training needed either – the interface is immediately recognizable thanks to its self-explanatory controls and practically non-existent learning curve.

## Manage Your Project Information with an Agile Approach

For decades, spreadsheets were the gold standard in team or project management. After all, there's a reason why Microsoft Excel remains one of the most popular tools in the workplace. But, did you know that almost 90% of corporate spreadsheets contain errors? That greatly increases a domino effect leading to serious problems with the project being managed. There's also the fact that efficient team management relies on much more than just spreadsheets – there'll be other things too, like documents, videos, photos, illustrations and even printed content that needs to be scanned in.

Now, imagine consolidating everything together under a single platform, reinforced by a unified search system that allows you to quickly browse through every project your team has ever worked on. With monday.com, your business portfolio becomes a full-fledged knowledgebase completes with searchable insights into past and current projects. By having such a system in place, you'll be able to set your business up for continuous improvement, and that's exactly how the modern, agile way to do things works!

Are you ready to streamline your projects with a team management tool that you can depend on? Visit Monday.com today to start simplifying the way your team works.

Continue reading %The Visual Project Management Tool Built for Designers%


by SitePoint Team via SitePoint