CROSS REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application claims the benefit of U.S. provisional patent application No. 62/022,717 filed on 10 Jul. 2014 and incorporated by reference as if set forth herein. 
     
    
     FIELD AND BACKGROUND OF INVENTION 
       [0002]    The present invention generally relates to the field of animated advertisements and other content. More particularly, the present invention relates to creating and displaying parallax animated advertisements and other type of publications inside an HTML element. 
         [0003]    Mobile devices and other devices using touch screens can be configured to respond to a user&#39;s touch input. Commonly today, a scrolling function allows the touch screen to respond to a detected user&#39;s touch, such as by the user ‘dragging’ the screen in different directions. It is also known to provide User Interfaces (UI) by detecting user touches. For example, US Application No: 2014/0137032 describes a mobile device having a parallax scrolling function. 
       SUMMARY OF INVENTION 
       [0004]    The present invention relates to a method of creating animated advertisements (ads), user guides, content recommendations or any other type of publications displayed inside another object, such as a website, app or any other supported product, which may be displayed on mobile devices or other devices that use touch screens. The animated content, advertisements, guides or other publications use parallax scrolling (hereinafter referred to as animated parallax publications) and may be created using designated tools and a connecting script. The present invention also relates to measuring and analyzing the performance of the parallax animated publication using a new Key Performance Indicator (KPI)—Cost Per Duration (CPD)—that may track the time viewers spent viewing the ad or publication. 
         [0005]    The parallax-animated publications use basic animation with HTML and PNG/JPG and other supported files, placed in layers. The parallax animation may be created by moving the different layers at different speeds in relation to the internet page that displays them and in relation to the layers themselves. The layers may be animated by the viewer as he/she scrolls a page. 
         [0006]    Users such as publishers, advertising agencies and designers will be able to upload a design into the designated tool, in layers, and the tool will transform these layers into dynamic variables. The script may use these variables to generate an automated code—creating a scrollable parallax animated publication. Publishers and Ad Networks may then embed the code on the relevant web page, app, or any other supported product. 
         [0007]    The advertisers, clients and/or publishers may also track or analyze the CPD performance of the publication. The more common KPIs like CPA (Cost Per Action) and CPM (Cost Per Mille) may also be tracked. 
         [0008]    An advantage of the method of the present invention is that enables a larger space to be used than the actual space allocated by the publisher. The publication&#39;s different layers may be scrolled, at various speeds within the publication itself, as the viewer scrolls inside a page or a screen. 
         [0009]    The tool generates a new creative way to tell a story through an ad, a user guide or any other publication, using non-intrusive animation. The tool also creates a very strong eye-hand connection that makes the content recommendations, advertisement or publication very hard to ignore on the viewer&#39;s side. 
         [0010]    Furthermore, the tool generates a new measurable KPI that may help publishers, advertisers and other clients adjust their content recommendations, advertisements and other publications and fit them to public demand and better performance. 
         [0011]    There is thus provided a method for creating animated content using parallax scrolling. The method includes the steps of: of generating an element to be displayed on a mobile device, touch screen or desktop screen, the element including details of at least one graphical resource together with the settings associated with the graphical resource; adding scrolling and parallax animation functionality to the generated element and generating computer code to create a parallax animated display of the created content on the device. 
         [0012]    Furthermore, in accordance with an embodiment of the invention, the method further includes the step of tracking and analyzing the parallax animated display. 
         [0013]    Furthermore, in accordance with an embodiment of the invention, the step of generating includes the step of translating at least one graphical resource together with the settings associated with said least one graphical resource into a readable JavaScript® file. 
         [0014]    Furthermore, in accordance with an embodiment of the invention, the device includes one of a group of devices including mobile devices, touch screens and desktop computers screens. 
         [0015]    Furthermore, in accordance with an embodiment of the invention, the content comprises one of a group including HTML content recommendations, advertisements, user guides and other publications. 
         [0016]    Furthermore, in accordance with an embodiment of the invention, the parallax animated publication is generated automatically or manually. 
         [0017]    Furthermore, in accordance with an embodiment of the invention, the graphical resource is configured to move at different speeds within the fixed size element containing said graphical resource, in relation to the content surrounding the element inside an HTML page displayed on the device, and in relation to other graphical resources within the element. 
         [0018]    Furthermore, in accordance with an embodiment of the invention, the element may include a plurality of graphical resources creating a plurality of layers, each of the layers being configured to move at different speeds. The element having a fixed size is inside an HTML page displayed on the device. The speed is determined either by the user or automatically by the designated tool. 
         [0019]    Furthermore, in accordance with an embodiment of the invention, the settings include at least one of a group including the desired resolution, the dimensions of each graphic resource, the speed and offsets of said content and the background image and color. 
         [0020]    Furthermore, in accordance with an embodiment of the invention, the method further includes the step of adding onClick action to the generated file. 
         [0021]    Furthermore, in accordance with an embodiment of the invention, the method includes the step of outputting an element containing at least one of a group project name, ID/class of main container, graphical resources paths and names, resolutions and graphical resources dimensions, and may include animation template settings. 
         [0022]    Furthermore, in accordance with an embodiment of the invention, the step of tracking includes steps of raising a first flag when the first pixel of the element enters the viewport; raising a second flag when the last pixel of the element exits the viewport; and determining the duration of the content inside the viewport display by calculating the delta between the timestamp of the first and second flags. 
         [0023]    Furthermore, in accordance with an embodiment of the invention, if the user navigates away while said content is still on the viewport, the step of tracking includes steps of raising a third flag and determining the duration of the content inside the viewport display by calculating the delta between the timestamp of the first and third flags. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0024]    The present invention will be understood and appreciated more fully from the following description taken in conjunction with the appended drawings in which: 
           [0025]      FIG. 1  is a schematic flow chart illustration for automatically creating and generating a single image parallax animated publication, constructed and operative in accordance an embodiment of the invention; 
           [0026]      FIG. 2  is a schematic flow chart illustration for automatically creating and generating multiple image parallax animated publication, constructed and operative in accordance an embodiment of the invention; 
           [0027]      FIG. 3  is a schematic flow chart illustration for manually creating multiple image parallax animated publication, constructed and operative in accordance an embodiment of the invention; 
           [0028]      FIG. 4  is a schematic flow chart illustration for creating a parallax animated publication element on a viewer&#39;s device, constructed and operative in accordance an embodiment of the invention; 
           [0029]      FIG. 5  shows the effects of speed and size inside a parallax animated publication element consisting of a single graphical resource, created and generated in accordance an embodiment of the invention, within a fixed size element displayed on a mobile device; and 
           [0030]      FIG. 6  is a schematic illustration of a generated parallax animated publication on a mobile device, showing the effect of movement of the parallax animated publication consisting of multiple layers within a web page. 
       
    
    
     DESCRIPTION OF THE INVENTION 
       [0031]    The present invention provides a method of creating parallax animated advertisements (ads), content recommendations, user guides and other publications inside a website, an app or other supported product, which is displayable on mobile devices or other supported devices. The publications may also be tracked and analyzed by the designated tool, the advertiser, publisher or other client. 
         [0032]    In an embodiment of the invention, the parallax animated publication may be created using the following resources: 
         [0033]    A) A designated tool having multiple modes, as follows (for example): 
         [0034]    1. Automated mode, using a single graphical resource (image file, png, jpg or other)—which translates the file and the file&#39;s settings into a readable JavaScript® file. 
         [0035]    2. Automated mode, using multiple graphical resources (image files, png, jpg or others)—which translates the files and the file&#39;s settings into a readable JavaScript® file. 
         [0036]    3. Custom (manual) mode, using multiple graphical resources (image files, png, jpg or others)—which translates the files and the file&#39;s settings into a readable JavaScript® file. 
         [0037]    B) A script adds scrolling and parallax animation to the JavaScript® file generated by the tool (A), and generates the html code required to create the complete parallax animated publication element to be displayed on the mobile screen or any other device. 
         [0038]    C) The designated tool may present analytical data of the parallax-animated publication once it is embedded on a web page, app, or other supported product. 
         [0039]    D) The designated tool may export the analytical data of the parallax-animated publication once it is embedded on a web page, app, or other supported product to other external sources. 
       Generating Dynamic Content 
       [0040]    Reference is now made to  FIG. 1 , which is a flow chart illustration of A1 (Automated mode, using a single graphical resource) which is a dynamic mode for translating a publisher&#39;s/advertiser&#39;s/client&#39;s file and settings into a readable JavaScript®. 
       Using the Tool: 
       [0041]    The publisher/advertiser/client logs in to the tool (step  101 ), and inputs their credentials and the project&#39;s identifier. If the intended website or publication that will contain the content (or advertisement or publication) consists of elements that stay fixed, the publisher/advertiser/client may enter the specific ID or class name of the main container element of the website/publication (step  102 ). Then the publisher/advertiser/client uploads their graphic resource, such as png/jpg or other supported format (step  103 ), selects the desired resolution (step  104 ) of the ad/publication, inputs the dimensions of the graphic resource (step  105 ) and after previewing and making any adjustments (step  106 ) may add “onClick” action (step  107 ) and publish the project (step  108 ). 
       Output: 
       [0042]    The tool generates an output (step  108 ) of a JavaScript® file containing the elements the user entered, such as project name, ID/class of main container, image paths and names, resolutions and graphic resource dimensions, for example. 
         [0043]    Reference is now made to  FIG. 2 , which is a flow chart illustration of A2 (Automated mode, using a multiple graphical resources) which is a dynamic mode for translating a publisher&#39;s/advertiser&#39;s/client&#39;s files and settings into a readable JavaScript®. 
       Using the Tool: 
       [0044]    The publisher/advertiser/client logs in to the tool (step  201 ), and inputs his credentials and the project&#39;s identifier. If the intended website or publication that will contain the parallax-animated publication consists of elements that stay fixed, the publisher/advertiser/client may enter the specific ID or class name of the main container element of the website/publication (step  202 ). 
         [0045]    Then the publisher/advertiser/client uploads their graphic resources—pngs/jpgs or other supported formats (step  203 ) and selects the desired resolution (step  204 ) of the ad/publication. The publisher/advertiser/client inputs the dimensions of the graphic resources (step  205 ), select one of the animation templates the designated tool offers (step  206 ) and after previewing and making any adjustments (step  207 ) may add “onClick” actions (step  208 ) and publish the project (step  209 ). 
       Output: 
       [0046]    The tool generates an output (step  209 ) of a JavaScript® file containing the elements the user entered, such as project name, ID/class of main container, image paths and names, resolutions, graphic resources dimensions and animation template settings, for example. 
         [0047]    Reference is now made to  FIG. 3 , which is a flow chart illustration of A3 (Custom or Manual mode, using multiple graphical resources) which is a dynamic mode for translating a publisher&#39;s/advertiser&#39;s/client&#39;s files and settings into a readable JavaScript®. 
       Using the Tool: 
       [0048]    The publisher/advertiser/client logs in to the tool (step  301 ), and inputs his credentials and the project&#39;s identifier. If the intended website or publication that will contain the parallax-animated publication consists of elements that stay fixed, the publisher/advertiser/client may enter the specific ID or class name of the main container element of the website/publication (step  302 ). Then the publisher/advertiser/client uploads the graphic resources, such as pngs/jpgs or other supported formats (step  303 ), selects the desired resolution of the ad/publication, and inputs the dimensions of the graphic resources (step  304 ). 
         [0049]    The publisher/advertiser/client may also select each resource&#39;s speed and offset (step  305 ), as well as the background color (step  306 ) for the ad/publication. 
         [0050]    After previewing and making any adjustments (step  307 ), the publisher/advertiser/client may add “onClick” actions (step  308 ) and publish the project (step  309 ). 
       Output: 
       [0051]    The tool generates an output (step  309 ) of a JavaScript® file containing the elements the user entered, such as project name, ID/class of main container, image paths and names, resolutions, graphic resources dimensions and custom animation speeds and offsets settings, for example. 
       Generating Parallax Animated Advertisement/Publication on Viewer&#39;s Device: 
       [0052]    The owner of the target website, app, or other supported product may implement a script or advertisement tag that dynamically generates the parallax-animated publication. The script or advertisement tag may implement three JavaScript® files, for example, one for each of these actions: 
         [0053]    1. Supporting functions JavaScript® libraries (JQUERY for desktop devices, ZEPTO for mobile devices) 
         [0054]    2. Generated advertisement/publication settings and details (as described in A—see para [0033]); 
         [0055]    3. Script for parallax animation and scrolling and their connection to the generated settings and details (as described in B—see para [0034]). 
         [0056]    Reference is now made to  FIG. 4 , which is a flow chart illustration for creating an animated advertisement on a viewer&#39;s device, constructed and operative in accordance an embodiment of the invention.  FIG. 4  is a flow chart illustration of B (see para [0034] (generating html code) which is a dynamic mode for combining scripts for scrolling and parallax animation with the generated JavaScript® file (A—see para [0033]); to create a parallax animated publication element to be displayed on the viewer&#39;s mobile screen or other device. 
         [0057]    The script or advertisement tag checks (query box  401 ) whether the viewer&#39;s device is a mobile device (or other supported touch screen device or a desktop device). If the device is a touch screen enabled device, the ZEPTO supporting library is loaded (step  403 ). If it is a desktop device (not a touch screen enabled device), the JQUERY supporting library is loaded (step  402 ). 
         [0058]    The script or advertisement tag then loads the other scripts (A and B). If the generated settings include a main container (query box  404 ), indicated by a definition of an element in the settings, that element is wrapped by an HTML div (step  406 ). If there is not a definition of an element in the settings, whatever is under the target &lt;body&gt; tag is wrapped by an HTML div (step  405 ). 
         [0059]    The wrapped element is then wrapped again, to generate the main container of the website/app/publication (step  407 ). The scripts then generates all the html code in accordance to the details in the settings (step  408 ), and checks again for a mobile/touch screen enhanced device (query box  409 ). 
         [0060]    If the check is positive a mobile scrollbar is generated (step  411 ) and the mobile, parallax effects are activated (step  412 ). If the check is negative, desktop parallax effects are activated (step  410 ). Once every other action finishes, the final parallax animated publication is presented on the viewer&#39;s device (step  413 ). 
       EXAMPLES 
       [0061]    Since parallax animation may cause some layers to move faster than others, the faster moving layers can be longer in length and hold more content. The content/advertisement/publication length is not constrained by the size of the element containing said ad/publication, but by the height of the device/website/app/other product. This allows publishers/advertisers/clients to incorporate more messages into a small space, while at the same time producing a new creative story-telling venue for designers. 
         [0062]      FIG. 5  shows the effects of speed of a parallax animated publication element consisting of a single graphical resource, created and generated in accordance an embodiment of the invention, within a fixed size element displayed on a mobile device; 
         [0063]    In layer 1, the publication&#39;s element allocated resolution is 300×250 pixels, having a background that moves at a regular scroll speed. If the same layer is set to move at double speed, the double speed layer may be up to 300×500 pixels in length (layer 2— FIG. 5 ). Similarly, if the speed is set to treble speed, the layer may be up to 300×750 pixels in length (layer 3— FIG. 5 ). 
         [0064]      FIG. 6  is a schematic illustration of a generated parallax animated publication inside a webpage element, displayed on a mobile device—showing the effect of movement on an element consisting of multiple layers. In this example, images A, B and C (the graphical resources) combine to create parallax animated content. Content that is positioned outside the viewport is shown as dotted lines. 
         [0065]    In this example, Image A is anchored to the content surrounding it, and moves at the same speed with the scrolling of the content like any other static image would. Images B and C have faster speeds defined, so they will scroll faster than the rest of the content. 
         [0066]    Positions 1-4 demonstrate a standard scroll action within a touch screen. Inside the parallax animated content element, Image A moves at a regular scroll speed—the same speed of the content surrounding the element. Image B moves faster than Image A, and starts entering the viewport, as shown in position 2. Image C moves faster than Image B, but since its starting position (shown at position 1) is further down, it only starts entering the viewport in position 3. In position 4, all elements are displayed, one on top of the other. Scrolling up or down causes various images to move back and forth, in accordance with their perspective speeds. 
       Analyzing the Content—Key Performance Indicator (KPI) Cost Per Duration (CPD): 
       [0067]    Since the user scrolls up and down to view the content, which causes the various images of the parallax animated publication to move back and forth, the inventor has realized that the time viewers spent viewing the ad or publication may be tracked. Thus, it is possible advertisers, clients and/or publishers to track and analyze using a new Key Performance Indicator (KPI), herein referred to as the Cost Per Duration (CPD). 
         [0068]    The script containing the scroll may track the element holding the parallax animated publication. Once the first pixel of the element enters the viewport, a flag may be raised on the script. Once the last pixel of the element leaves the viewport, a second flag may be raised. If the user navigates away from the HTML containing the parallax -animated publication while the content is still on the viewport, a third flag may be raised. Duration of the content inside the viewport display may be calculated by the delta of the first two flags&#39; timestamp, or by the delta of the first flag and the timestamp third flag. 
         [0069]    It will be appreciated that the present invention is not limited by what has been described hereinabove and that numerous modifications, all of which fall within the scope of the present invention, exist. Rather the scope of the invention is defined by the claims, which follow:
A method of creating animated content, which includes the steps of generating an element to be displayed on a mobile device, touch screen or desktop screen. The element includes details of at least one graphical resource together with the settings associated with the graphical resource. The method further includes the steps of adding scrolling and parallax-animation functionality to the generated element and generating computer code to create a parallax-animated display of the created content on the device.