
NOTICE: All information contained herein is, and remains
the property of TechnoCore.
The intellectual and technical concepts contained
herein are proprietary to TechnoCore and dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained
from TechnoCore.
The ObjTextTilt object is a utility for applying a subtle, 3D tilt effect to a block of content on a web page. It uses the tilt.js library to achieve this effect, which responds to mouse movement.
Process(Param1: str, ...)This method takes a string of HTML or text content, wraps it in a <div>, and attaches the tilt.js event listeners.
Parameters:
Param1 (str): The HTML or text content that the tilt effect should be applied to.Returns:
Example Usage:
tilt = ObjProcessText()
content_to_tilt = "<h2>Hover over me!</h2><p>This text will tilt.</p>"
tilt_html = tilt.Process(Param1=content_to_tilt)
print(tilt_html)
This would output the necessary HTML and a <script> block to initialize the effect on the content.